2.) Use the cd command to change the directory path to the Metasploit directory location. If you installed Metasploit in the default directory, type the following:
$ cd /opt/metasploit-4.4.0
3.) Type the following and press Enter:
/opt/metasploit-4.4.0$ sudo bash ctlscript.sh restartAfter you enter the sudo password, the system stops and restarts all services associated with Metasploit. This includes prosvc, nginx, and PostgreSQL.
![]() |