Wireless Army
This is a blog / tips and tricks website for web developers and security researchers.
follow us in feedly

msfconsole database error
by admin
 at 2016-11-13 08:38:00.

if you get this error when you type msfconsole:

Failed to connect to the database: could not connect to server: Connection refused
        Is the server running on host "" and accepting
        TCP/IP connections on port 7175?

or your armitage does not work:
you should do:

sudo /opt/framework/postgresql/scripts/ctl.sh start
sudo /opt/framework3/postgresql/scripts/ctl.sh start
sudo /opt/metasploit/postgresql/scripts/ctl.sh start