Nginx常见问题汇总
2012-04-01 20:37
225 查看
http://blog.csdn.net/toontong/article/details/5483654
1.Nginx导致磁盘空间占满
有一次因为nginx出现问题,too many open files。这个问题是因为打开文件数量超过了系统的设置数量。可以通过ulimit -n 65535 来修改最大允许的文件数。
另外还要注意一下,就是nginx.conf不可以设置太大的文件数(一般来说65535应该够用)。
如果你用 df -h命令发现某个分区几乎被用光了,而用df -i发现节点数又没那么多,那么肯定有问题,解决办法是先停止掉nginx(/usr/local/nginx/sbin/nginx -s stop)
然后再启动它。这样可以释放被nginx占用空间,这时候你再用df -h来看会发现空间还原了。
http://www.92cto.com/blog/135.html http://blog.csdn.net/guoguo1980/article/details/4729668 http://www.appelsiini.net/projects/lazyload http://www.unixhot.com/space.php?uid=17&do=thread&id=7 http://wiki.nginx.org/CoreModule http://www.linuxqq.net/archives/698.html http://apps.hi.baidu.com/share/detail/19936967 http://antivirus.neu.edu.cn/scan/ http://hi.baidu.com/yzr006/blog/item/1e6aba43df51920572f05d54.html http://labs.frickle.com/files/
Nginx平滑升级,加入缓存清理机制
http://www.51testing.com/?uid-116228-action-viewspace-itemid-238799
nginx 屏蔽非法域名绑定
server { listen 80 default; return 500; }
http://linqp.blogbus.com/c3726351/
server { listen 80 default; rewrite ^(.*) http://www.null.com permanent;
}
http://www.percona.com/doc/percona-monitoring-plugins/cacti/nginx-templates.html
1.Nginx导致磁盘空间占满
有一次因为nginx出现问题,too many open files。这个问题是因为打开文件数量超过了系统的设置数量。可以通过ulimit -n 65535 来修改最大允许的文件数。
另外还要注意一下,就是nginx.conf不可以设置太大的文件数(一般来说65535应该够用)。
如果你用 df -h命令发现某个分区几乎被用光了,而用df -i发现节点数又没那么多,那么肯定有问题,解决办法是先停止掉nginx(/usr/local/nginx/sbin/nginx -s stop)
然后再启动它。这样可以释放被nginx占用空间,这时候你再用df -h来看会发现空间还原了。
http://www.92cto.com/blog/135.html http://blog.csdn.net/guoguo1980/article/details/4729668 http://www.appelsiini.net/projects/lazyload http://www.unixhot.com/space.php?uid=17&do=thread&id=7 http://wiki.nginx.org/CoreModule http://www.linuxqq.net/archives/698.html http://apps.hi.baidu.com/share/detail/19936967 http://antivirus.neu.edu.cn/scan/ http://hi.baidu.com/yzr006/blog/item/1e6aba43df51920572f05d54.html http://labs.frickle.com/files/
Nginx平滑升级,加入缓存清理机制
http://www.51testing.com/?uid-116228-action-viewspace-itemid-238799
nginx 屏蔽非法域名绑定
server { listen 80 default; return 500; }
http://linqp.blogbus.com/c3726351/
server { listen 80 default; rewrite ^(.*) http://www.null.com permanent;
}
http://www.percona.com/doc/percona-monitoring-plugins/cacti/nginx-templates.html
相关文章推荐
- nginx 多节点负载均衡常见问题解决汇总
- Windows Phone 7 开发常见问题汇总
- awk常见问题汇总
- EditText常见问题汇总
- jdmail邮件系统安装和使用中的常见问题汇总
- LXC 部署上线期间常见问题汇总
- 【BMC_patrol常见问题汇总】
- 常见的浏览器兼容性问题大汇总(包括css、js)
- 编译常见问题汇总
- 【BMC_patrol常见问题汇总】PatrolAgent安装100%报错和错误的解决方法
- WIN7常见问题汇总
- Mapreduce编程常见问题汇总
- Cocos2d-JS开发常见问题汇总
- sublime常见问题汇总
- Android应用程序开发常见问题汇总
- Java常见问题汇总
- Integration Services包部署常见问题汇总
- Android WebView常见问题及解决方案汇总 .
- 汇总Android视频录制中常见问题
- 视频直播常见问题与解决办法汇总【系列二—直播截图】