nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory)
发生错误:nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory),logs目录下缺少pid文件。
解决方法:使用指定nginx.conf文件的方式重启nginx
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
再次使用./nginx -s reload等命令就正常了
登陆目标机器,查看sshd的日志信息。日志信息目录为,/var/log/secure