How to restart apache2 from commandline

restart apache2 from command line2

This can be acheived in 2 ways:

restart apache2 from command line2

sudo /etc/init.d/apache2 restart

Or else

sudo service apache2 restart

restart apache2 from command line1

Comments

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.