免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3349 | 回复: 4
打印 上一主题 下一主题

[Web] centos5.4 執行nginx一段時間之後就會出現這個訊息 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-06-18 10:23 |只看该作者 |倒序浏览
The page you are looking for is temporarily unavailable.
Please try again later.

整個網站都會這樣
service restart也還是一樣

论坛徽章:
0
2 [报告]
发表于 2010-06-18 14:04 |只看该作者
回复 1# awelkije
是不是你fastcgi_index  没设置呢 ?

论坛徽章:
0
3 [报告]
发表于 2010-06-18 22:56 |只看该作者
一開始執行網站都正常
這是我的設定檔案

  1. #######################################################################
  2. #
  3. # This is the main Nginx configuration file.  
  4. #
  5. # More information about the configuration options is available on
  6. #   * the English wiki - http://wiki.codemongers.com/Main
  7. #   * the Russian documentation - http://sysoev.ru/nginx/
  8. #
  9. #######################################################################

  10. #----------------------------------------------------------------------
  11. # Main Module - directives that cover basic functionality
  12. #
  13. #   http://wiki.codemongers.com/NginxMainModule
  14. #
  15. #----------------------------------------------------------------------

  16. user              nginx;
  17. worker_processes  8;

  18. error_log         /var/log/nginx/error.log;
  19. #error_log        /var/log/nginx/error.log  notice;
  20. #error_log        /var/log/nginx/error.log  info;

  21. pid               /var/run/nginx.pid;



  22. #----------------------------------------------------------------------
  23. # Events Module
  24. #
  25. #   http://wiki.codemongers.com/NginxEventsModule
  26. #
  27. #----------------------------------------------------------------------

  28. events {
  29.     worker_connections  1024;
  30. }


  31. #----------------------------------------------------------------------
  32. # HTTP Core Module
  33. #
  34. #   http://wiki.codemongers.com/NginxHttpCoreModule
  35. #
  36. #----------------------------------------------------------------------

  37. http {
  38.     include       /etc/nginx/mime.types;
  39.     default_type  application/octet-stream;

  40.     log_format  main  '$remote_addr - $remote_user [$time_local] $request '
  41.                       '"$status" $body_bytes_sent "$http_referer" '
  42.                       '"$http_user_agent" "$http_x_forwarded_for"';

  43.     access_log  /var/log/nginx/access.log  main;

  44.     sendfile        on;
  45.     #tcp_nopush     on;

  46.     #keepalive_timeout  0;
  47.     keepalive_timeout  65;

  48.     gzip  on;
  49.    
  50.     # Load config files from the /etc/nginx/conf.d directory
  51.     include /etc/nginx/conf.d/*.conf;

  52.     #
  53.     # The default server
  54.     #
  55.        server {
  56.         listen       80;
  57.         server_name  192.168.0.128;

  58.         #charset koi8-r;

  59.         #access_log  logs/host.access.log  main;

  60.         location / {
  61.             #root   /usr/share/nginx/html;
  62.                 root  /var/www/html;

  63.             index  index.php index.html index.htm;
  64.         }

  65.         error_page  404              /404.html;
  66.         location = /404.html {
  67.             root   /usr/share/nginx/html;
  68.         }

  69.         # redirect server error pages to the static page /50x.html
  70.         #
  71.         error_page   500 502 503 504  /50x.html;
  72.         location = /50x.html {
  73.             root   /usr/share/nginx/html;
  74.         }

  75.         # proxy the PHP scripts to Apache listening on 127.0.0.1:80
  76.         #
  77.         #location ~ \.php$ {
  78.         #    proxy_pass   http://127.0.0.1;
  79.         #}

  80.         # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  81.         #
  82.         location ~ \.php$ {
  83.             #root           /usr/share/nginx/html;
  84.                 root  /var/www/html;

  85.             fastcgi_pass   127.0.0.1:9000;
  86.             fastcgi_index  index.php;
  87.             #fastcgi_param  SCRIPT_FILENAME  /usr/share/nginx/html$fastcgi_script_name;
  88.             fastcgi_param  SCRIPT_FILENAME  /var/www/html$fastcgi_script_name;

  89.             include        fastcgi_params;
  90.         }

  91.         # deny access to .htaccess files, if Apache's document root
  92.         # concurs with nginx's one
  93.         #
  94.         location ~ /\.ht {
  95.             deny  all;
  96.         }
  97.     }
  98. }

复制代码

论坛徽章:
0
4 [报告]
发表于 2010-06-18 22:57 |只看该作者
本帖最后由 awelkije 于 2010-06-19 11:05 编辑

這是我的log檔案

  1. 2010/06/17 15:55:30 [error] 8863#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.0.157, server: 192.168.0.128, request: "GET /pma/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.0.128"
  2. 2010/06/17 15:55:30 [error] 8863#0: *3 open() "/var/www/html/pma/nginx-logo.png" failed (2: No such file or directory), client: 192.168.0.157, server: 192.168.0.128, request: "GET /pma/nginx-logo.png HTTP/1.1", host: "192.168.0.128", referrer: "http://192.168.0.128/pma/"
  3. 2010/06/17 15:55:30 [error] 8863#0: *4 open() "/var/www/html/pma/poweredby.png" failed (2: No such file or directory), client: 192.168.0.157, server: 192.168.0.128, request: "GET /pma/poweredby.png HTTP/1.1", host: "192.168.0.128", referrer:
复制代码

论坛徽章:
0
5 [报告]
发表于 2010-07-20 11:51 |只看该作者
try to increase worker_rlimit_nofile
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP