curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall && chmod 755 msfinstall && ./msfinstallmsfconsole //会提示你是否建立一个database,输入yes首先要安装postgresql
sudo apt install postgresql
安装完成之后确认下服务是否开启(保持服务开启)msfdb init //初始化
db_rebuild_cache