初入msf解决postgresql的连接问题(archlinux)

初入msf解决postgresql的连接问题(archlinux)

时间:2015-06-28 16:29来源:网络整理 作者:KKWL 点击:
装完msf后,运行 msf db_status [*] postgresql selected, no connection ok ,开始我们去连数据库 $ sudo systemctl startpostgresql Failed to issue method call: Unit postgresql.service failed toload: No such file or directory. See s

   装完msf后,运行 
  msf > db_status
  [*] postgresql selected, no connection

  ok ,开始我们去连数据库
 
  $ sudo  systemctl start postgresql
Failed to issue method call: Unit postgresql.service failed to load: No such file or directory. See system logs and 'systemctl status postgresql.service' for details.

# su - postgres
su: user postgres does not exist

 存在上面的问题,很大程度是你的sql 的组建没安装完(我是装msf,自动装上去的),我重装一次,解决了

 剩余就是启动服务,跟一些配置,参见 wiki

 然后我们打开msf 连数据库,我用自己的账户连了很多次,都失败,最后看了msf 的书,试了下 默认的连接,才成功的,至于登陆账户的连接,以后学多了再去搞了

msf > db_connect postgres:postgres@127.0.0.1/msfbook
msf > db_status
[*] postgresql connected to msfbook

ok
 


附几个链接,以后会用到
fedora :

------分隔线----------------------------