问题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/; ...
具体是装好后安装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",...
我在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...
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:
最近想把apache迁移到nginx上去,但是发现这么一个问题。 apache日志中有这么一个变量“%D ”(服务器处理本请求所用时间,以微秒为单位。) 但是在nginx似乎没有这个变量,而且这个变量又是必须的,如何解决呢?
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...
nginx的负载均衡有哪些功能呢? * 如果后面的服务器其中一台坏了,它能自动识别,更牛的是它好了之后nginx可以马上识别 那么大虾知道这ngnix的这个功能使用那部分配置或文件实现的,基本原理是什么?
使用心得: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...