裝好kali 2.0後直接運行msfconsoleshell
msf> db_status
postgres selected, no connection
百度到的解決方法可能是針對BT和kali 1.0的,在kali 2.0中並不可行。post
正確的方法以下,回到shell中執行:spa
# service postgres enable # service postgres start # msfdb init (關鍵步驟) Creating database user 'msf' Enter password for new role: Enter it again: Creating databases 'msf' and 'msf_test' Creating configuration file in /usr/share/metasploit-framework/config/database.yml Creating initial database schema
Bingo!code