今天测试域名访问不了,登陆 Linux(Ubuntu)重启Nginx:
nginx -s reload
结果报错:
nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (: No such file or directory)
解决方法:
/usr/local/nginx/sbin/nginx -c/usr/local/nginx/conf/nginx.conf
2023-01-04 20:57:27
今天测试域名访问不了,登陆 Linux(Ubuntu)重启Nginx:
nginx -s reload
结果报错:
nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (: No such file or directory)
解决方法:
/usr/local/nginx/sbin/nginx -c/usr/local/nginx/conf/nginx.conf