Metasploit uses PostgreSQL is running by checking the output of ss -ant and making sure that port 5432 is listening
With PostgreSQL up and running, we next need to create and initialize msf database
msfdb init
Now, that the PostgreSQL service is up and running and the database is initialized, you can launch msfconsole and verify database connectivity with the db_status command as shown below.



EmoticonEmoticon