1) Start postgresql
> /etc/init.d/postgresql status

> /etc/init.d/postgresql start

2) Start Metasploit Framework’s Database.
> sudo msfdb init

3) Run a bundle install
> gem install bundler

4) Start Metasploit
> msfconsole

Confirm postgreql is connected
> db_status
