metasploit5配置数据库

#踩坑:Please run msfdb as a non-root user

apt-get install postgresql #安装数据库

service postgresql start #启动数据库

update-rc.d postgresql enable          postgresql开机自启

su postgres #切换用户

createuser msf5 -P -S -R -D #创建数据库用户输密码

createdb -O msf5 msf5 #创建数据库

exit #退出用户回到root

vim /opt/metasploit-framework/embedded/framework/config/database.yml

或/usr/share/metasploit-framework/config/database.yml

修改一下内容:

database: msf5

username: msf5

password: 123

原文地址:https://www.cnblogs.com/websecyw/p/11362962.html