SyntaxHighlighter

2013-08-22

Start / Stop / Restart Apache HTTP Service in MAC

START:
sudo apachectl start
STOP:
sudo apachectl stop
RESTART(unload service and load the service again):
sudo apachectl restart
RESTART but not disconnect all the linked connection(reload the config file)
sudo apachectl graceful

In fact, it calls the /usr/sbin/httpd, so you should set option -k before start|stop|restart|graceful|graceful-stop

for more information, try man apachectl or apachectl -h

0 件のコメント:

人気の投稿