log_format main '$remote_addr - $remote_user [$time_local] $request '
'"$status" $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for" "$gzip_ratio"';
正常启动:signal process started
问题背景:执行自己编写的.bat脚本报出的问题。脚本代码如下:
d:
cd nginx
nginx -s stop
start nginx
原因:nginx未启动就执行nginx -s stop命令。 解决方法:可以不解决,不影响nginx的正常启动,或者修改脚本。
如果项目路径包含在Users/me下,使用chmod授权/Users/me即可。 参考链接:https://serverfault.com/questions/218583/403-forbidden-error-on-mac-osx-apache-and-nginx What are the permissions on /Users/me, /Use:s/me/Documents and /Users/me/Documents/workspace? All of the folders in the tree need to be readable by the nobody user.
另外,可能是前端配置的请求url有问题,端口不正确。
改一下项目根路径