How to Start/Stop/Restart Apache Server in Ubuntu Linux
By Ali Hammad Baig on 6:15 AM
Filed Under: apache, apache on linux, apache on ubuntu, apache server, Linux, restart apache in linux, start apache on linux, stop apache on linux, Ubuntu
/etc/init.d/apache2 is service script used to start / stop / restart the Apache2 service under Debian or Ubuntu Linux. You need to login as root or use sudo command restart Apache.
Task: Start Apache 2 Server
# /etc/init.d/apache2 start
or$ sudo /etc/init.d/apache2 start
Task: Restart Apache 2 Server
# /etc/init.d/apache2 restart
or$ sudo /etc/init.d/apache2 restart
Task: Stop Apache 2 Server
# /etc/init.d/apache2 stop
or$ sudo /etc/init.d/apache2 stop
Subscribe to:
Post Comments (Atom)
0 comments for this post