Restarting Metasploit Services
There may be times when you need to restart the Metasploit services, such as after installation. Metasploit includes scripts that can be used to stop and restart all Metasploit related services.
Restarting the Metasploit Service on Windows
To restart the Metasploit service on Windows systems, you must stop the Metasploit services before you can start them again. When you stop and start the Metasploit services, a few command line windows appear. These prompts run a control script that stop and start all Metasploit services, which include PostgreSQL, thin, and prosvc.
-
Choose Start > Programs > Metasploit > Services > Stop Services.
If the system prompts you to allow the program to make changes to the computer, click Yes.
- Choose Start > Programs > Metasploit > Services > Start Services.
Metasploit can take up to ten minutes to restart.
Restarting the Metasploit Service on Linux
You can run the stop and start commands to restart the Metasploit services. To use these commands, run the following:
- Open a terminal.
- Type the following to stop the Metasploit services and press Enter.
$ /etc/init.d/metasploit stop
- After the services have been stopped, enter the following to start the Metasploit services and press Enter:
$ /etc/init.d/metasploit start
After the system restarts the services, wait a few minutes before you try to access the Metasploit web interface.
Related Topics