Skip to content
This repository

Metasploit Wiki Pages


Start here:

Database troubleshooting

If the database is not connecting automatically, first make sure it is running:

  • Linux:$ netstat -lnt | grep 7337 where 7337 is whatever port you told it to listen on during installation
  • Windows: look for a postgres.exe process in task manager.

If postgres is not running, try starting it manually:

  • Linux:$ sudo /etc/init.d/metasploit start or if you didn't choose to install as a service: $ sudo /opt/metasploit*/ctlscript.sh start
  • Windows: Start -> Metasploit -> Services -> Start Services

Once postgres is running and listening, go back to msfconsole:

msf > db_connect
Something went wrong with that request. Please try again.