您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息
免费发信息

nginx使用小结

2024/3/29 20:21:58发布5次查看
今天照着 http://cxshun.iteye.com/blog/1535188 这篇文章 做个一遍
出现了一些问题:
1 createdirectory() “d:\program files\nginx-1.11.2/temp/client_body_temp” failed (3: the system cannot find the path specified)
原因:好像是没有权限创建文件夹具体不祥(解决你帮它创建)
解决:在nginx.conf配置文件的http { }内,增加以下三行语句(要确定你的temp文件夹下有对应的文件夹)
client_body_temp_path temp/client_body_temp; proxy_temp_path temp/proxy_temp; fastcgi_temp_path temp/fastcgi_temp;
2 createfile() “d:\nginx-1.11.2/html/favicon.ico” failed (2: the system cannot find the file specified), client: 127.0.0.1, server: localhost, request: “get /favicon.ico http/1.1”, host: “localhost”, referrer: “http://localhost/”
原因:不祥
解决:关闭favicon.ico不存在时记录日志
location = /favicon.ico {log_not_found off;access_log off;}
3 upstream timed out (10060: a connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond) while connecting to upstream, client: 127.0.0.1, server: localhost, request: “get /tomcat.css http/1.1”, upstream: “http://[::1]:8080/tomcat.css“, host: “localhost”, referrer: “http://localhost/”
速度慢还出现以上错误
原因:不祥
解决:将localhost 改成 ip
或者在 hosts 文件 加上 127.0.0.1 localhost
同时设置一下在连接时间
proxy_connect_timeout 300; #nginx跟后端服务器连接超时时间(代理连接超时)
proxy_send_timeout 300; #后端服务器数据回传时间(代理发送超时)
proxy_read_timeout 600; #连接成功后,后端服务器响应时间(代理接收超时)
').addclass('pre-numbering').hide(); $(this).addclass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadein(1700); }); }); 以上就介绍了 nginx使用小结,包括了方面的内容,希望对php教程有兴趣的朋友有所帮助。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录