pop68315 发表于 2012-9-6 15:51:51

求助一个nginx错误 [emerg] zero size shared memory zone "one"

# /usr/local/nginx/sbin/nginx -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: zero size shared memory zone "one"
nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed

配置文件提示错误 但是这个要如何修改才可以呢
之前一直用着好好的,但是今天加了2个站点发现都不显示图片和css 然后就重启了下服务器,结果nginx就起不来了。提示这个错误
服务器是4g内存,不应该会是内存不够导致的。

求高手帮助 谢谢你们了

pop68315 发表于 2012-9-6 15:58:58

已经用./upgrade_nginx.sh升级过版本(重装nginx过)
但是依然不行,应该是配置问题,请问哪里出错了?

pop68315 发表于 2012-9-6 16:01:53

还忘记说一点
今天绑站点的时候绑重复了一个,但是我后来修改了。。
不知道和这个有关系么

pop68315 发表于 2012-9-6 16:40:05

2012/09/06 10:35:10 18364#0: conflicting server name "www.xxx.net" on 0.0.0.0:80, ignored
2012/09/06 10:35:10 18364#0: zero size shared memory zone "one"
2012/09/06 10:35:10 18366#0: conflicting server name "www.xxx.net" on 0.0.0.0:80, ignored
2012/09/06 10:35:10 18366#0: signal process started
2012/09/06 10:59:37 28571#0: signal process started
2012/09/06 11:01:23 29288#0: signal process started
2012/09/06 11:04:20 30550#0: signal process started
2012/09/06 11:06:09 31219#0: zero size shared memory zone "one"

licess 发表于 2012-9-6 16:52:41

设置了limit_zone?
可能是这个的问题,你吧你这个地方的设置发上来看看

pop68315 发表于 2012-9-6 16:54:07

userwww www;

worker_processes 1;

error_log/home/wwwlogs/nginx_error.logcrit;

pid      /usr/local/nginx/logs/nginx.pid;

#Specifies the value for maximum file descriptors that can be opened by this process.
worker_rlimit_nofile 51200;

events

{

use epoll;

worker_connections 51200;

}

http

{

include       mime.types;

default_typeapplication/octet-stream;


server_names_hash_bucket_size 128;

client_header_buffer_size 32k;

large_client_header_buffers 4 32k;

client_max_body_size 50m;
    limit_zone one $binary_remote_addr 32k;


sendfile on;

tcp_nopush   on;


keepalive_timeout 60;


tcp_nodelay on;


fastcgi_connect_timeout 300;

fastcgi_send_timeout 300;

fastcgi_read_timeout 300;

fastcgi_buffer_size 64k;

fastcgi_buffers 4 64k;

fastcgi_busy_buffers_size 128k;

fastcgi_temp_file_write_size 256k;


gzip on;

gzip_min_length1k;

gzip_buffers   4 16k;

gzip_http_version 1.0;

gzip_comp_level 2;

gzip_types       text/plain application/x-javascript text/css application/xml;

gzip_vary on;


#limit_zonecrawler$binary_remote_addr10m;


#log format

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

server

{

listen       80;

server_name test.xxx.net;

index index.html index.htm index.php;

root/home/wwwroot;


location / {

try_files $uri @apache;

}


location @apache {

internal;

proxy_pass http://127.0.0.1:88;

include proxy.conf;

}


location ~ .*\.(php|php5)?$

{

proxy_pass http://127.0.0.1:88;

include proxy.conf;

}


location /status {

stub_status on;

access_log   off;

}


location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$

{

expires      30d;

}


location ~ .*\.(js|css)?$

{

expires      12h;

}


access_log/home/wwwlogs/access.logaccess;

}
include vhost/*.conf;
}

pop68315 发表于 2012-9-6 16:54:50

军哥,貌似我没有修改过 的
刚才执行了一下 ./apache.sh 问题依旧。。

[ 本帖最后由 pop68315 于 2012-9-6 16:56 编辑 ]

licess 发表于 2012-9-6 17:24:13

回复 7# 的帖子

你发升级到lnmpa后的就没啥用处了
应该有个limit_zone one,把后面的值调大应该就行了

pop68315 发表于 2012-9-6 17:25:34

原帖由 licess 于 2012-9-6 17:24 发表 https://bbs.vpser.net/images/common/back.gif
你发升级到lnmpa后的就没啥用处了
应该有个limit_zone one,把后面的值调大应该就行了
我发的日志是升级前的,发了后 操作过一次。lnmpa,对了 我一直是在用lnmpa的。。只是想升级下看看能修复么

老大您能把limit_zone one 详细参数发出来吗?谢谢老大!

licess 发表于 2012-9-6 18:00:37

这个参数应该是你自己加的,lnmp默认没这个

pop68315 发表于 2012-9-6 18:25:49

原帖由 licess 于 2012-9-6 18:00 发表 https://bbs.vpser.net/images/common/back.gif
这个参数应该是你自己加的,lnmp默认没这个

军哥我没有修改过这个配置,然后我一直用的就是lnmpa没有用lnmp
升级lnmpa是为了重装下 看看是否可以修复错误

pop68315 发表于 2012-9-6 22:57:03

最后还是重装解决的了。
页: [1]
查看完整版本: 求助一个nginx错误 [emerg] zero size shared memory zone "one"