nginx启动关闭操做html
nginx -s reload:修改配置后从新加载生效
nginx -s reopen:从新打开日志文件
nginx -t -c /path/to/nginx.conf 测试nginx配置文件是否正确
关闭nginx:
nginx -s stop:快速中止nginx
quit:完整有序的中止nginx
其余的中止nginx 方式:
ps -ef | grep nginx
kill -QUIT 主进程号:从容中止Nginx
kill -TERM 主进程号:快速中止Nginx
pkill -9 nginx:强制中止Nginx
启动nginx:
nginx -c /path/to/nginx.conf
平滑重启nginx:
kill -HUP 主进程号
https://www.cnblogs.com/xiaoL/p/6964217.htmlnginx
一、nginx反向代理,request.getServerName()的问题后端
https://blog.csdn.net/lxl631/article/details/42004349服务器
二、nginx 后端服务器配置端口 request.getserverPort测试
https://blog.csdn.net/shi0299/article/details/52052118ui
三、413 Request Entity Too Large.net
https://blog.csdn.net/li396864285/article/details/53522828代理
四、nginx出现 “414 request-uri too large”日志
https://blog.csdn.net/hanchao_h/article/details/69945557code
五、前台Failed to load resource: net::ERR_CONTENT_LENGTH_MISMATCH,后台错误2015/05/30 00:11:53 [crit] 8808#0: *60 open() "/var/cache/nginx/proxy_temp/2/01/0000000012" failed (13: Permission denied)
proxy_temp目录的group设置为nginx,并赋予rwx权限
[root@nginx nginx-build]# ls -l total 36 drwxrwxrwx. 2 nobody nginx 4096 Nov 1 15:03 client_body_temp drwxrwxrwx. 2 nginx nginx 4096 Nov 1 15:14 conf drwxrwxrwx. 2 nobody nginx 4096 Nov 1 15:03 fastcgi_temp drwxrwxrwx. 2 nginx nginx 4096 Nov 1 15:03 html drwxrwxrwx. 2 nginx nginx 4096 Nov 2 17:00 logs drwx------. 2 nobody nginx 4096 Nov 1 15:03 proxy_temp drwxrwxrwx. 2 nginx nginx 4096 Nov 1 15:03 sbin drwxrwxrwx. 2 nobody nginx 4096 Nov 1 15:03 scgi_temp drwxrwxrwx. 2 nobody nginx 4096 Nov 1 15:03 uwsgi_temp
[root@nginx nginx-build]# chown -Rf nginx:nginx /home/nginx/Software/nginx/nginx-1.14.0/nginx-build/proxy_temp [root@nginx nginx-build]# ls -l total 36 drwxrwxrwx. 2 nobody nginx 4096 Nov 1 15:03 client_body_temp drwxrwxrwx. 2 nginx nginx 4096 Nov 1 15:14 conf drwxrwxrwx. 2 nobody nginx 4096 Nov 1 15:03 fastcgi_temp drwxrwxrwx. 2 nginx nginx 4096 Nov 1 15:03 html drwxrwxrwx. 2 nginx nginx 4096 Nov 2 17:00 logs drwx------. 2 nginx nginx 4096 Nov 1 15:03 proxy_temp drwxrwxrwx. 2 nginx nginx 4096 Nov 1 15:03 sbin drwxrwxrwx. 2 nobody nginx 4096 Nov 1 15:03 scgi_temp drwxrwxrwx. 2 nobody nginx 4096 Nov 1 15:03 uwsgi_temp
[root@nginx nginx-build]# chmod 777 /home/nginx/Software/nginx/nginx-1.14.0/nginx-build/proxy_temp [root@nginx nginx-build]# ls -l total 36 drwxrwxrwx. 2 nobody nginx 4096 Nov 1 15:03 client_body_temp drwxrwxrwx. 2 nginx nginx 4096 Nov 1 15:14 conf drwxrwxrwx. 2 nobody nginx 4096 Nov 1 15:03 fastcgi_temp drwxrwxrwx. 2 nginx nginx 4096 Nov 1 15:03 html drwxrwxrwx. 2 nginx nginx 4096 Nov 2 17:00 logs drwxrwxrwx. 2 nginx nginx 4096 Nov 1 15:03 proxy_temp drwxrwxrwx. 2 nginx nginx 4096 Nov 1 15:03 sbin drwxrwxrwx. 2 nobody nginx 4096 Nov 1 15:03 scgi_temp drwxrwxrwx. 2 nobody nginx 4096 Nov 1 15:03 uwsgi_temp
https://blog.csdn.net/oldcrane/article/details/46274189
六、nginx响应超时upstream timed out (110: Connection timed out) while reading response header from upstream
https://blog.csdn.net/u014218983/article/details/81217032
proxy_connect_timeout 默认值60s, nginx链接到后端服务器的链接超时时间,发起握手等候响应超时时间。 proxy_read_timeout 链接成功后,等候后端服务器响应时间。其实已经进入后端的排队之中等候处理(也能够说是后端服务器处理请求的时间)。 proxy_send_timeout 后端服务器数据回传时间,就是在规定时间以内后端服务器必须传完全部的数据。