# /usr/local/nginx/sbin/nginx -s reload
nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory)
解决方案:
于是网上用了这方法,也就是nginx -c /path/to/config/file)
在我机器上是这样的/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 -c /path/to/config/file)
在我机器上是这样的/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf