免费注册 查看新帖 |

Chinaunix

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

[Web] 使用nginx跑静态图片经常在高并发情况下挂掉 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-04-06 22:09 |只看该作者 |倒序浏览
最近使用nginx0.74在sorlrais10上跑静态图片服务器 在高并发的情况下挂了好几次了 不知道有人碰到过这问题没? 附上我nginx的配置 大家帮忙看下 谢谢

---------------------------------------------------------------------------

user  nobody;
worker_processes  64;
#Specifies the value for maximum file descriptors that can be opened by this process.
worker_rlimit_nofile 51200;
events {
use eventport;
    worker_connections  20480;
}

http {
    include       mime.types;
    default_type  application/octet-stream;
    sendfile        on;
server_names_hash_bucket_size 128;
    keepalive_timeout  65;
tcp_nodelay on;
        access_log /dev/null;
        error_log /dev/null;
gzip off;
#      gzip_min_length  1k;
#      gzip_buffers     4 8k;
#      gzip_http_version 1.1;
#      gzip_types text/plain application/x-javascript text/css application/html application/xml;

    server {
        listen       80;
        server_name  localhost;
        location / {
            root   html;
            index  index.html index.htm;
        }
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }
    }
server  {       listen  80;
                server_name     photo.xxxx.com photo.xxxx.com;
                index           index.html index.htm ;
                root            /www2/photo;
                error_page 404  /404.html;
                location ~ \.(gif|jpg|jpeg|png|bmp|ico)$ {expires 7d;}
        }
server  {       listen  80;
                server_name     clubfiles.xxxx.com clubfiles1.xxxx.com clubfiles2.xxxx.com clubfiles3.xxxx.com clubfiles4.xxxx.com c
lubfiles5.xxxx.com
                index           index.html index.htm ;
                root            /www1/clubfiles;
                error_page 404  /404.html;
                location ~ \.(gif|jpg|jpeg|png|bmp|ico)$ {expires 300d;}
        }
server  {       listen  80;
                server_name     shopfiles.xxxx.com shopfiles.yyyy.com;
                index           index.html index.htm ;
                root            /www2/shopfiles;
                error_page 404  /404.html;
                location ~ \.(gif|jpg|jpeg|png|bmp|ico)$ {expires 300d;}
        }
}

------------------------------------------------------------------------

论坛徽章:
0
2 [报告]
发表于 2009-04-07 09:28 |只看该作者
请提供挂掉前的error log
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP