How to restart apache2 on server ubuntu

You can try to use following command line to restart apache2 on server ubuntu:

service apache2 restart

or

service apache2 reload

P/s: If it works, you can see more commands line with the command line:

service apache2 -help

Try another command line:

/etc/init.d/apache2 restart

or

/etc/init.d/apache2 reload

P/s: if it works, you can see more commands line by using the command line:

/etc/init.d/apache2 -help

 

Add Comment

Required fields are marked *. Your email address will not be published.