install metasploit in kali linux

Shell
sudo service postgresql start

Source

Also in Shell: