错误原因:nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory),logs目录下缺少pid文件。

解决方法:

        使用指定nginx.conf文件的方式重启nginx

        root@hadoop100 conf]# /usr/local/openresty/nginx/sbin/nginx -c conf/nginx.conf
        [root@hadoop100 conf]# nginx -s reload

        

        注意:这里的conf 需要改成自己nginx的路径。

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐