日期:2014-05-16  浏览次数:20732 次

nginx出问题鸟!急
修改了nginx配置文件nginx.conf
然后重启nginx
[root@localhost ~]# /etc/init.d/nginx restart

Restarting nginx daemon: nginxcat: /usr/local/nginx/logs/nginx.pid: No such file or directory
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
nginx not running[emerg]: zero size shared memory zone "one"
nginx already running.
出现这么的问题
然后我又试试这样
[root@localhost ~]# /usr/local/nginx/sbin/nginx -s reload
结果出现这样的问题
[error]: open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory)
然后我又试试这样
[root@localhost ~]# nginx -t -c /usr/local/nginx/conf/nginx.conf
然后又出现这样的问题
-bash: nginx: command not found
最后我又这样
[root@localhost ~]# /etc/init.d/nginx start
···的问题
Starting nginx daemon: nginx[emerg]: zero size shared memory zone "one"
nginx already running.

不知道该怎么办了



------解决方案--------------------
/usr/local/nginx/logs/nginx.pid: No such file or directory

提示你的nginx pid有问题,检查nginx.conf中关于pid的设置