文档
http://nginx.org/cn/
安装
brew install nginx
启动nginx ,sudo nginx ;
访问localhost:8080 发现已出现nginx的欢迎页面了。
备注: ln -s /usr/local/sbin/nginx /usr/bin/nginx 做了个软连接。
常用的指令有:
nginx -V 查看版本,以及配置文件地址
nginx -v 查看版本
nginx -c filename 指定配置文件
nginx -h 帮助
nginx -s [reload\reopen\stop\quit]
配置文件地址:/usr/local/etc/nginx/nginx.conf
http://nginx.org/cn/
安装
brew install nginx
启动nginx ,sudo nginx ;
访问localhost:8080 发现已出现nginx的欢迎页面了。
备注: ln -s /usr/local/sbin/nginx /usr/bin/nginx 做了个软连接。
常用的指令有:
nginx -V 查看版本,以及配置文件地址
nginx -v 查看版本
nginx -c filename 指定配置文件
nginx -h 帮助
nginx -s [reload\reopen\stop\quit]
配置文件地址:/usr/local/etc/nginx/nginx.conf