返回顶部
首页 > 资讯 > 服务器 >Job for nginx.service failed because the control process exited with error code.
  • 314
分享到

Job for nginx.service failed because the control process exited with error code.

nginx服务器运维 2023-08-19 07:08:38 314人浏览 安东尼
摘要

1. nginx启动报错: Job for Nginx.service failed because the control process exited with error code.See "systemctl status ngin

1. nginx启动报错:

Job for Nginx.service failed because the control process exited with error code.See "systemctl status nginx.service" and "journalctl -xe" for details.

这个错误是nginx.conf配置文件里面配置错误,可以使用命令检查在哪里出错

nginx -t

出错的地方:

nginx: [emerg] invalid number of arguments in "proxy_pass" directive in /etc/nginx/conf/nginx.conf:82

进行改正,并再次检查。输出以下信息表示ok。

nginx: the configuration file /etc/nginx/nginx.conf syntax is oknginx: configuration file /etc/nginx/nginx.conf test is successful

启动nginx:

systemctl start nginx

建议每次更改配置文件都先执行命令检查一下配置文件是否配置成功。

2.nginx相关命令
查看nginx启动状态

systemctl status nginx

重启加载nginx

systemctl reload nginx

强制重启nginx

systemctl restart nginx

停止nginx

systemctl stop nginx

禁用nginx

systemctl disable nginx

来源地址:https://blog.csdn.net/m0_50176078/article/details/126947631

--结束END--

本文标题: Job for nginx.service failed because the control process exited with error code.

本文链接: https://lsjlt.com/news/375144.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作