Monday, April 23, 2012

Restart Apache 2 In Mac OS X

How do I restart the Apache 2 Web Server under Apple OS X UNIX operating systems using bash command prompt?

Open a terminal and than type the following command to restart the apache 2 web server:
$ sudo /usr/sbin/apachectl restart
OR
$ sudo apachectl -k restart
Sample outputs:
Restart Apache 2 Mac OS X
Restart Apache 2 Mac OS X

No comments:

Post a Comment