Selasa, 03 Januari 2012

Ubuntu Linux Start / Restart / Stop Apache Web Server

How do I start, restart or stop Apache 2 web server under Ubuntu Linux operating systems?

/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


Source : http://www.cyberciti.biz/faq/ubuntu-linux-start-restart-stop-apache-web-server/


0 komentar:

Posting Komentar