You can use the service command to perform basic operations like stop, start of restart Apache web server on Ubuntu. First, login to your web-server and use any of the following commands.
To restart Apache web server use the following command:
sudo service apache2 restart
To stop Apache web server use the following command:
sudo service apache2 stop
To start Apache web server use the following command:
sudo service apache2 start
To check Apache server status (i.e. whether it is running or not) you can use the following command:
Use the
service
CommandYou can use the
service
command to perform basic operations like stop, start of restart Apache web server on Ubuntu. First, login to your web-server and use any of the following commands.To restart Apache web server use the following command:
To stop Apache web server use the following command:
To start Apache web server use the following command:
To check Apache server status (i.e. whether it is running or not) you can use the following command: