前往小程序,Get更优阅读体验!
立即前往
发布
社区首页 >专栏 >nginx.service: control process exited, code=exited status=1

nginx.service: control process exited, code=exited status=1

作者头像
kirin
发布2020-11-23 11:00:17
发布2020-11-23 11:00:17
2.7K00
代码可运行
举报
文章被收录于专栏:Kirin博客Kirin博客
运行总次数:0
代码可运行
代码语言:javascript
代码运行次数:0
复制
[root@localhost nginx]# systemctl status nginx.service
● nginx.service - LSB: starts the nginx web server
   Loaded: loaded (/etc/rc.d/init.d/nginx; bad; vendor preset: disabled)
   Active: failed (Result: exit-code) since Mon 2019-07-22 16:41:54 CST; 43s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 28076 ExecStart=/etc/rc.d/init.d/nginx start (code=exited, status=1/FAILURE)

Jul 22 16:41:54 localhost.localdomain systemd[1]: Starting LSB: starts the nginx web server...
Jul 22 16:41:54 localhost.localdomain nginx[28076]: Starting nginx... nginx (pid 26717 26716 26715 26042) already running.
Jul 22 16:41:54 localhost.localdomain systemd[1]: nginx.service: control process exited, code=exited status=1
Jul 22 16:41:54 localhost.localdomain systemd[1]: Failed to start LSB: starts the nginx web server.
Jul 22 16:41:54 localhost.localdomain systemd[1]: Unit nginx.service entered failed state.
Jul 22 16:41:54 localhost.localdomain systemd[1]: nginx.service failed.
[root@localhost nginx]# ps -e | grep nginx   ##查看nginx进程
26042 ?        00:00:00 nginx
26715 ?        00:00:00 nginx
26716 ?        00:00:00 nginx
26717 ?        00:00:00 nginx
[root@localhost nginx]# kill -9 26042   ###杀死以下进程
[root@localhost nginx]# kill -9 26715
[root@localhost nginx]# kill -9 26716
[root@localhost nginx]# kill -9 26717
[root@localhost nginx]# ps -e | grep nginx   ##再次查看已经没有了
[root@localhost nginx]# 
[root@localhost nginx]# 
[root@localhost nginx]# 
[root@localhost nginx]# systemctl start nginx.service   ##启动服务
[root@localhost nginx]# systemctl status nginx.service   ##查看服务
● nginx.service - LSB: starts the nginx web server
   Loaded: loaded (/etc/rc.d/init.d/nginx; bad; vendor preset: disabled)
   Active: active (running) since Mon 2019-07-22 16:43:25 CST; 6s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 28116 ExecStart=/etc/rc.d/init.d/nginx start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/nginx.service
           ├─28123 nginx: master process /www/server/nginx/sbin/nginx -c /www/server/nginx/conf/nginx.conf
           ├─28124 nginx: worker process
           ├─28125 nginx: worker process
           ├─28126 nginx: cache manager process
           └─28127 nginx: cache loader process

Jul 22 16:43:25 localhost.localdomain systemd[1]: Starting LSB: starts the nginx web server...
Jul 22 16:43:25 localhost.localdomain nginx[28116]: Starting nginx...  done
Jul 22 16:43:25 localhost.localdomain systemd[1]: Started LSB: starts the nginx web server.
[root@localhost nginx]#
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2020/11/20 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档