【linux】nginx: [error] open() “/alidata/server/nginx/logs/nginx.pid” failed 解决办法
原因是因为nginx.pid文件丢失,处理方案为:root@root:~# cd /alidata/server/nginx-1.4.4/logsroot@root:/alidata/server/nginx-1.4.4/logs# lltotal 352924drwxrwxr-x 2 www www 4096 Aug 25 11:23 ./drwxr-xr-x
·
原因是因为nginx.pid文件丢失,处理方案为:
root@root:~# cd /alidata/server/nginx-1.4.4/logs
root@root:/alidata/server/nginx-1.4.4/logs# lltotal 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
更多推荐
已为社区贡献2条内容
所有评论(0)