在使用msfconsole的时候经常会出现 

Module database cache not built yet

 

 

 

在msfconsole中输入 msfdb init 

然后重启 即可连接