关于metasploit5升级遇到的问题及其解决方法

关于metasploit5升级遇到的问题及其解决方法

我的操作系统Parrot Security OS。
今天和以往一样打开parrot,提示更新,OK,更吧。
等了一会儿弄好了重启,打开msf,出问题了。
在这里插入图片描述果然出问题了。
在这里插入图片描述看到这里首先就觉得是postgresql数据库没有连接上,但我确定启动metasploit前的确启动了postgresql。
于是…
在这里插入图片描述在这里插入图片描述又报错。
仔细看了一下启动metasploit时的错误提示,觉得应该是postgresql配置出了问题
然后…
l o c a t e p o s t g r e s q l . c o n f = = / e t c / p o s t g r e s q l / 11 / m a i n / p o s t g r e s q l . c o n f / l i b / s y s t e m d / s y s t e m / p o s t g r e s q l @ . s e r v i c e . d / p a r r o t p o s t g r e s q l . c o n f / u s r / l i b / t m p f i l e s . d / p o s t g r e s q l . c o n f / u s r / s h a r e / p o s t g r e s q l / 11 / p o s t g r e s q l . c o n f . s a m p l e = = locate postgresql.conf== /etc/postgresql/11/main/postgresql.conf /lib/systemd/system/ [email protected]/parrot_postgresql.conf /usr/lib/tmpfiles.d/postgresql.conf /usr/share/postgresql/11/postgresql.conf.sample == sudo nano /etc/postgresql/11/main/postgresql.conf

终端里输入``
在这里插入图片描述这里我喜欢用nano,你们自己可以选择自己习惯用的。
在这里插入图片描述找到listen_addresses这里,这里本来是被注释了的,然后去掉注释,把监听地址的localhost设为‘*’,把监听端口设为5432
如下图:
在这里插入图片描述现在再试试看看
在这里插入图片描述好像成功了。
进入metasploit看看
在这里插入图片描述没有报错,数据库连接也显示正常。 这是我第一次写博客,请大佬斧正。