1.技术搬运工:官方网址:
https://github.com/rapid7/metasploit-framework/wiki/Setting-Up-a-Metasploit-Development-Environment#set-up-postgresql
其中命令改成shell脚本
2.大神指点:
http://www.myhack58.com/Article/html/3/8/2014/51268_2.htm
本地vim修改地址
/usr/share/metasploit-framework/config/database.yml.example
其中遇到的麻烦事:
postgresql selected, no connection
之前已经开启服务了 > service postgresql start
然后设置连接 > db_connect postgres:toor@127.0.0.1/postgres
[*] Rebuilding the module cache in the background…
msf > db_status
[*] postgresql connected to postgres