一、安裝msfphp
1.一、打開終端,進入安裝目錄(你想放在哪就進哪git
cd /optgithub
curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstallsql
1.二、chmod 755 msfinstall數據庫
1.三、./msfinstallapache
等它自動安裝完畢,而後先不要啓動,目前最新版的這個msf會問你要不要用自帶到database,你想用自帶到數據庫就回車,想用本身到數據庫就輸入no回車api
二、安裝postgresqlapp
2.一、apt-get install postgresql curl
2.二、su - postgres 工具
2.三、psql
2.四、\password 123456
2.五、可忽略這一項,若是你喜歡用psql到話(純命令),安裝postgresql到管理工具
2.5.一、安裝apache
apt-get install apache2
2.5.二、安裝pgadmin
apt-get install phppgadmin
2.5.三、重啓一下apache(好像也能夠不用重啓,個人什裝好以後重啓才能看到界面
/etc/init.d/apache2 restart
2.5.四、登陸頁面應該就能夠瀏覽了
http://127.0.0.1/phppgadmin/