nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory)
错误,进到logs文件发现的确没有nginx.pid文件。
解决方法:
[root@localhost ]# /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
即启动服务器时指定配置文件地址即可。
nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory)
上一篇:云锁安装之nginx模块
下一篇:最后一页