原因是因为nginx.pid文件丢失,处理方案为:

root@root:~# cd /alidata/server/nginx-1.4.4/logs

root@root:/alidata/server/nginx-1.4.4/logs# ll
total 352924
drwxrwxr-x  2 www  www       4096 Aug 25 11:23 ./
drwxr-xr-x 12 root root      4096 Oct 26  2015 ../
-rw-r--r--  1 root root 361367430 Aug 25 10:51 access.log
-rw-r--r--  1 root root     10502 Aug 25 11:21 error.log
root@root:/alidata/server/nginx-1.4.4/logs# /alidata/server/nginx-1.4.4/sbin/nginx -c /alidata/server/nginx-1.4.4/conf/nginx.conf

root@root:/alidata/server/nginx-1.4.4/logs# /alidata/server/nginx-1.4.4/sbin/nginx -s reload

root@root:/alidata/server/nginx-1.4.4/logs# cd /
root@root:/# etc/init.d/nginx reload

Logo

更多推荐