命令
转载:http://www.cnblogs.com/apexchu/p/4119252.html
nginx -c /usr/local/nginx/conf/nginx.conf 启动
nginx -s reload修改配置后重新加载生效
nginx -s reopen重新打开日志文件
nginx -t -c /path/to/nginx.conf测试配置文件是否正确
nginx -s stop关闭
An attempt was made to access a socket in a way forbidden
端口占用
访问静态资源
location /item/item/{ 这里少/报500
alias F:/test/;这里少/报500
}