Friday, April 27, 2012

Mac OS x Restart Apache Web Server

How do I restart Apache web server under Mac OS X operating systems?

The apachectl command act as Apache HTTP Server control interface. It can be used to start, stop, and restart the Apache web server from command line.
Open a terminal and type any one of the following command:
sudo apachectl restart
OR
sudo apachectl -k restart
Fig.01: Restarting Apache under Mac OS X
Fig.01: Restarting Apache under Mac OS X

Task: Stop Apache Web server

sudo  apachectl -k stop

Task: Start Apache Web server

sudo  apachectl -k start

No comments:

Post a Comment