Last active
December 13, 2015 22:09
-
-
Save JagoWang/4982821 to your computer and use it in GitHub Desktop.
Apache httpd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Apache: | |
httpd -t //检查配置是否正确 | |
service httpd reload //重新加载配置 | |
启动,重启和停止 | |
/usr/local/apache/bin/apachectl -k start (不加参数k也行) | |
/usr/local/apache/bin/apachectl -k restart | |
/usr/local/apache/bin/apachectl -k stop | |
Mac自帶apache停止: | |
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment