1. Apache
Apache 默认路径
/Library/WebServer/Documents
关闭Apache
➜ ~ sudo apachectl -k stop
2. nginx
安装nginx
brew install nginx
nginx 配置文件地址
/usr/local/etc/nginx
测试nginx 配置文件
nginx -t
重载nginx 配置
nginx -s reload
开启nginx
brew services nginx start
关闭nginx
brew services nginx stop
重启nginx
brew services nginx restart
网友评论