- 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
Nginx常见错误与解决方法Nginx常见错误与解决方法
上海纽斯达科技 Nginx常见错误与解决方法 上海纽斯达科技有限公司 2014-10-25 文档状态 文件状态: 【 】草稿 【 】修改稿 【√】正式发布 文档编号 Nsdkj-778 保 密 等 级 限制 作 者 刘恒亮 最后完成日期 2014-12-25 审 核 人 最后审核日期 2014-12-25 批 准 人 最后批准日期 2014-12-25 目的: 在Nginx服务器出现故障时,能快速定位并解决相关错误。 必威体育官网网址: 本文档仅供内部使用,请勿外传 概述: Nginx常见错误与问题之解决方法技术指南。 安装环境: 系统环境:redhat enterprise 6.5 64bit 1、Nginx 常见启动错误 有的时候初次安装nginx的时候会报这样的错误 sbin/nginx -c conf/nginx.conf 报错内容:sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory 启动时如果报异常error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory 这说明我们的环境还不是和启动需要 小小的配置一下 解决方法(直接运行): 32位系统 [root@sever lib]# ln -s /usr/local/lib/libpcre.so.1 /lib 64位系统 [root@sever lib]# ln -s /usr/local/lib/libpcre.so.1 /lib64 然后执行ps -ef | grep nginx 查看nginx进程确认是否真的已经启动了,在进程列表里会 有最起码两个, worker(nginx工作进程)和master(nginx主进程) root 4349 1 0 02:24 ? 00:00:00 nginx: master process sbin/nginx -c conf/nginx.conf nginx 4350 4349 0 02:24 ? 00:00:00 nginx: worker process root 4356 28335 0 02:30 pts/1 00:00:00 grep nginx NGINX 就 OK了 2、400 bad request错误的原因和解决办法 配置nginx.conf相关设置如下. client_header_buffer_size 16k; large_client_header_buffers 4 64k; 根据具体情况调整,一般适当调整值就可以。 3、Nginx 502 Bad Gateway错误 在php.ini和php-fpm.conf中分别有这样两个配置项:max_execution_time和request_terminate_timeout。 这两项都是用来配置一个PHP脚本的最大执行时间的。当超过这个时间时,PHP-FPM不只会终止脚本的执行, 还会终止执行脚本的Worker进程。所以Nginx会发现与自己通信的连接断掉了,就会返回给客户端502错误。 以PHP-FPM的request_terminate_timeout=30秒时为例,报502 Bad Gateway错误的具体信息如下: 1)Nginx错误访问日志: ?????2013/09/19 01:09:00 [error] 27600#0: *78887 recv() failed (104: Connection reset by peer) while reading response header from upstream,? ?????client: 01, server: , request: POST /index.php HTTP/1.1,?upstream: fastcgi://unix:/dev/shm/php-fcgi.sock:,? ?????host: , referrer: /index.php 2)PHP-FPM报错日志:?????WARNING:? child 25708 exited on signal 15 (SIGTERM) after 21008.883410 s
您可能关注的文档
- Module 2 Fantasy Literature 精彩的文学.doc
- Module 1 第1课时.doc
- Module 2 My home town and my country.doc
- Module 2 同步练习.doc
- Module 2 第二单元.doc
- Module 3 Period One Introduction,Reading and Vocabulary 同步精练.doc
- Module 2 Unit 3 Language in use教案.doc
- Module 3 Adventure in the Literature 教案.doc
- Module 2 A Job Worth Doing教案2.doc
- Module 3 Body language and Non-verbal Communication(答案).doc
- notes to the text.doc
- Notice of the Promotion of Tax Exemption, Deduction and Refund Policy for Export Products - EN.doc
- Nowadays it is easier to maintain health than the.doc
- NSAC全国标准化考试联盟认证试题Indesign CS5-1.doc
- Novel_Laser_Beam_Steering_Techniques(新型激光束转向技术).doc
- nuclear energy.doc
- NS13技术协议.doc
- Nuclear energy and the energy crisis.doc
- NUMERICAL CONTROL数控技术.doc
- Nutrition and Colonic Health.doc
文档评论(0)