安装
brew install nginx
启动
nginx
访问 localhost:8080 出现nginx画面即可.
其他命令(注意:mac中所有的可执行文件都在usr/local/bin中)
nginx -s reload|stop|quit 也可以进入到(usr/local/bin中执行./nginx -s reload|stop|quit)
查看配置文件是否正确:
进入到usr/local/bin 中,执行 ./nginx -t
安装
brew install nginx
启动
nginx
访问 localhost:8080 出现nginx画面即可.
其他命令(注意:mac中所有的可执行文件都在usr/local/bin中)
nginx -s reload|stop|quit 也可以进入到(usr/local/bin中执行./nginx -s reload|stop|quit)
查看配置文件是否正确:
进入到usr/local/bin 中,执行 ./nginx -t