亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 10122 | 回復(fù): 3
打印 上一主題 下一主題

[Web] nginx問題 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2008-09-03 17:39 |只看該作者 |倒序?yàn)g覽
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
2008/09/03 08:10:28 [notice] 4198#0: start worker processes
2008/09/03 08:10:28 [notice] 4198#0: start worker process 4199
2008/09/03 08:10:32 [alert] 4199#0: 1024 worker_connections is not enough while accepting new connection on 0.0.0.0:80
2008/09/03 08:10:32 [error] 4199#0: *1021 upstream prematurely closed connection while reading response header from upstream, client: 10.10.10.10, server: 10.10.10.10, request: "GET / HTTP/1.0", upstream: "http://10.10.10.10:80/", host: "test.com"
2008/09/03 08:10:38 [alert] 4199#0: 1024 worker_connections is not enough while accepting new connection on 0.0.0.0:80
2008/09/03 08:10:38 [error] 4199#0: *2042 upstream prematurely closed connection while reading response header from upstream, client: 10.10.10.10, server: 10.10.10.10, request: "GET / HTTP/1.0", upstream: "http://10.10.10.10:80/", host: "test.com"



我的nginx現(xiàn)在老報(bào)這個(gè)錯(cuò)誤,問下是什么問題?



[root@web1 conf]# cat nginx.conf
user  nobody nobody;
worker_processes  1;

error_log  logs/error.log  notice;

pid        logs/nginx.pid;

worker_rlimit_nofile 51200;

events {
    worker_connections  1024;
}


http {
    include       mime.types;
    default_type  application/octet-stream;

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

#    client_header_buffer_size    1k;
#    large_client_header_buffers  4 4k;


    sendfile        on;

    keepalive_timeout  65;

    gzip  on;
    gzip_min_length  1100;
   gzip_buffers     4 8k;
    gzip_types       text/plain;

    upstream tomcats {
         server 10.10.10.10:801 weight=10;
    }



    server {
        listen       80;
        server_name  10.10.10.10 web1.com;

        charset gb2312,utf-8;

        access_log  logs//web1.com.access.log  main;

        location / {
            root   html;
            index  index.html index.htm;
            expires 24h;
        }
      




       location /NginxStatus {
                        stub_status             on;
                        access_log              off;
                }


           location / {
                        proxy_pass      http://test.com;

                       proxy_redirect          off;
                    proxy_set_header        Host $host;
                    proxy_set_header        X-Real-IP $remote_addr;
                     
              }

        error_page  404              /404.html;

        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }
}
}



10.10.10.10:801  是一個(gè) TOMCAT   我打算弄3個(gè)上去,但是現(xiàn)在一個(gè)反向代理都不好用。

[ 本帖最后由 sam.liu 于 2008-9-3 17:42 編輯 ]

論壇徽章:
0
2 [報(bào)告]
發(fā)表于 2008-11-20 15:30 |只看該作者
你看看你的ulimit -a 是多少?會(huì)不會(huì)是系統(tǒng)的最大文件打開數(shù)不夠?

論壇徽章:
0
3 [報(bào)告]
發(fā)表于 2008-11-20 15:35 |只看該作者
配置錯(cuò)了吧
也許應(yīng)該是 proxy_pass      http://tomcats;

你的nginx自己監(jiān)聽在80,又proxy到自己

[ 本帖最后由 minuteman 于 2008-11-20 15:37 編輯 ]

論壇徽章:
5
2015年辭舊歲徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:53:172015亞冠之水原三星
日期:2015-06-02 16:34:202015年亞冠紀(jì)念徽章
日期:2015-10-19 18:13:37程序設(shè)計(jì)版塊每日發(fā)帖之星
日期:2015-11-08 06:20:00
4 [報(bào)告]
發(fā)表于 2008-11-20 15:40 |只看該作者
原帖由 minuteman 于 2008-11-20 15:35 發(fā)表
配置錯(cuò)了吧
也許應(yīng)該是 proxy_pass      http://tomcats;

你的nginx自己監(jiān)聽在80,又proxy到自己


那就Loop了
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP