ChinaUnix.net
相关文章推荐:

nginx 关闭日志

我在配置文件中加了access_log off;可是日志还是在增加,请问nginx要怎么样才能让他不生成日志

by xueleixu - 服务器应用 - 2009-01-04 13:35:45 阅读(7610) 回复(4)

相关讨论

问题1. 我设置了关闭正常的访问记录,和错误记录,结果/var/log/nginx/下的access.log没记录正常的,倒出现了404的错误日志,error.log也记录了404的错误日志,只是记录风格不同,这是我的相关nginx.conf: server { listen 54.87.34.12:80; server_name www.aaa.com; #charset koi8-r; #access_log logs/host.access.log main; location / { root /aaa/; ...

by hunforce - 服务器应用 - 2009-04-28 15:40:22 阅读(8171) 回复(2)

具体是装好后安装discuz论坛,在检查配置的时候失去响应,然后提示貌似是nginx和fastcgi连接不上出现的那个,检查错误日志,显示 2009/06/02 19:36:19 [error] 1578#0: *1 upstream timed out (60: Operation timed out) while reading response header from upstream, client: 192.168.0.86, server: 192.168.0.20, request: "POST /install/index.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.0.20",...

by 田埂上卖粮草的 - BSD - 2009-06-03 18:12:39 阅读(6379) 回复(3)

我在redhat as4 u6 x86下编译使用nginx做反向代理,想利用nginx日志来分析,使用awstats软件来分析,现在想使用logrotate来截断日志,每天一个文件,因为现在日志一天太大了,一天5G.我的配置如下: #cat /etc/logrotate.d/nginx /home/log/*.access.log { daily rotate 31 missingok notifempty #compress create sharedscripts postrotate [ ! -f /usr/lo...

by myfreeke - 服务器应用 - 2008-10-30 09:46:19 阅读(4025) 回复(11)

2008/06/20 11:23:59 [error] 6038#0: *12995240 upstream timed out (110: Connection timed out) while reading upstream 2008/06/20 11:23:59 [error] 6038#0: *12994925 upstream timed out (110: Connection timed out) while reading upstream 很多这种日志,不知道为啥,应用暂时没看出有什么问题:em05:

by killua - 服务器应用 - 2008-06-20 16:31:36 阅读(2776) 回复(2)

如何在squid中记录用户的ip地址而不是nginx所在服务器地址 不知有人碰到这样问题,请赐教!! 谢谢了

by bigtimer - 服务器应用 - 2008-01-10 13:24:54 阅读(3375) 回复(3)

最近想把apache迁移到nginx上去,但是发现这么一个问题。 apache日志中有这么一个变量“%D ”(服务器处理本请求所用时间,以微秒为单位。) 但是在nginx似乎没有这个变量,而且这个变量又是必须的,如何解决呢?

by mageguoshi - 服务器应用 - 2008-12-24 13:26:37 阅读(4080) 回复(3)

2008/09/03 08:10:28 [notice] 4197#0: using the "epoll" event method 2008/09/03 08:10:28 [notice] 4197#0: nginx/0.6.31 2008/09/03 08:10:28 [notice] 4197#0: built by gcc 3.4.6 20060404 (Red Hat 3.4.6-3) 2008/09/03 08:10:28 [notice] 4197#0: OS: Linux 2.6.9-42.EL 2008/09/03 08:10:28 [notice] 4197#0: sysctl(KERN_RTSIGMAX): 0 2008/09/03 08:10:28 [notice] 4197#0: getrlimit(RLIMIT_NOFILE): 65535:65535 200...

by sam.liu - 服务器应用 - 2008-11-20 15:40:28 阅读(8245) 回复(3)

nginx的负载均衡有哪些功能呢? * 如果后面的服务器其中一台坏了,它能自动识别,更牛的是它好了之后nginx可以马上识别 那么大虾知道这ngnix的这个功能使用那部分配置或文件实现的,基本原理是什么?

by andyhua12 - 服务器应用 - 2008-09-30 15:24:47 阅读(2455) 回复(8)

使用心得:nginx处理大并发比较稳定,特别省 内存 ,配置简单. 1.安装pythoncd /usr/ports/lang/python make install clean 2.安装flup cd /usr/ports/www/py-flup make install clean 3.安装 django 1) cd /usr/ports/www/py-django make install clean 4.安装 nginx cd /usr/ports/www/nginx make install clean 5.启动和管理flup的脚本 参考 http://www.djangoproject.com/documentation/fastcgi/ #!/bin/sh # Replace these thr...

by 剑心通明 - BSD文档中心 - 2008-03-23 20:44:48 阅读(1075) 回复(0)