如标题所示如果出现这个怎么处理:我这边是从:https://blog.csdn.net/houbin01/article/details/50966265转载过来的;也是整理自己在使用kali linux 学习中碰到的问题整理自己学习与分享;
当你想启动msfconsole时候
不但没有启动成功反而出现了这段错误代码:
[-] ***Rting the Metasploit Framework console...\
[-] * WARNING: No database support: could not connect to server: Connection refused
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
意思是没有启动带数据库支持的MSF服务需要我们去启动;
我们就exit退出msfconsole然后输入:/etc/init.d/postgresql start
输入完成后等待显示:*[ ok ] Starting postgresql (via systemctl): postgresql.service.*这个字样在输入:msfdb init
显示出现:[i] Database already started
[i] The database appears to be already configured, skipping initialization
之后你在去输入msfconsole
就可以正常启动了。