当前位置: 技术问答>linux和unix
nginx出问题鸟!急
来源: 互联网 发布时间:2017-05-22
本文导语: 修改了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 | jobsp...
修改了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.
不知道该怎么办了
然后重启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的设置
提示你的nginx pid有问题,检查nginx.conf中关于pid的设置