kali linux 输入msfconsole 显示[-] ***Rting the Metasploit Framework console...\ [-] * WARNING: No databa

如标题所示如果出现这个怎么处理:我这边是从: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就可以正常启动了。

  • 4
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值