nginx


Nginx

1.nginx.conf 配置文件位置:

--conf-path=/opt/homebrew/etc/nginx/nginx.conf

2.nginx安装目录:

--sbin-path=/opt/homebrew/Cellar/nginx/

3.常用命令

启动:nginx

重启:nginx -s reload

退出:nginx -s quit (stop)

4.不好找各种路径?

使用:nginx -v
可以很方便的返回各种路径地址