本文只介绍homebrew安装nginx与使用
安装
brew install nginx
nginx 命令
# 启动
brew services start nginx
# 重启
brew services restart nginx
# 关闭
brew services stop nginx
配置
配置文件 /usr/local/etc/nginx/nginx.conf
Docroot /usr/local/var/www
本文只介绍homebrew安装nginx与使用
brew install nginx
# 启动
brew services start nginx
# 重启
brew services restart nginx
# 关闭
brew services stop nginx
配置文件 /usr/local/etc/nginx/nginx.conf
Docroot /usr/local/var/www