1. Installation MSF
1.1, open the terminal, into the installation directory (you want to put in where you go
Cd/opt
Curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/ Metasploit-framework-wrappers/msfupdate.erb > Msfinstall
1.2, chmod 755 Msfinstall
1.3,./msfinstall
And so it automatically installed, and then do not start, the most recent version of the MSF will ask you to take it to the database, you want to use your own to the data base to enter, you want to use your own to the database input no return
2. Installing PostgreSQL
2.1. Apt-get Install PostgreSQL
2.2, Su-postgres
2.3, Psql
2.4, \password 123456
2.5, can ignore this item, if you like to use Psql to talk (Pure command), install PostgreSQL to the management tool
2.5.1, installing Apache
Apt-get Install Apache2
2.5.2, installation Pgadmin
Apt-get Install Phppgadmin
2.5.3, reboot Apache (as if you can not reboot, I have to reboot to see the interface
/etc/init.d/apache2 restart
2.5.4, login page should be able to browse the
http://127.0.0.1/phppgadmin/
ubuntu16.04 installation Metasploit+postgresql