kali linux 2016版本中metasploit不能自动连接postgresql数据库,出现postgresql selected,no connection
解决方案如下
输入命令:msfdb
![Metasploit连接postgresql数据库](http://www.linuxdiyf.com/linux/uploads/allimg/170206/2-1F206092304237.jpg)
输入命令:msfdb init
![Metasploit连接postgresql数据库](http://www.linuxdiyf.com/linux/uploads/allimg/170206/2-1F20609231L29.jpg)
现在打开mesploit 查看连接数据库状态
![Metasploit连接postgresql数据库](http://www.linuxdiyf.com/linux/uploads/allimg/170206/2-1F20609232Tb.jpg)
连接成功,简单易操作
最后把postgresql设置为开机自启
root@kali:~# update-rc.d postgresql enable