【问题标题】:systemctl start httpd command not failing with error codesystemctl start httpd 命令没有失败并显示错误代码
【发布时间】:2018-06-26 17:16:07
【问题描述】:

我在运行此代码时遇到问题。

#systemctl start httpd
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
# systemctl status httpd.service
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor prese                           t: disabled)
   Active: failed (Result: exit-code) since Wed 2018-01-17 17:59:46 UTC; 20s ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 2188 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAIL                           URE)
  Process: 2187 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, st                           atus=1/FAILURE)
 Main PID: 2187 (code=exited, status=1/FAILURE)

Jan 17 17:59:45 hackdays httpd[2187]: (98)Address already in use: AH00072...0
Jan 17 17:59:45 hackdays httpd[2187]: (98)Address already in use: AH00072...0
Jan 17 17:59:45 hackdays httpd[2187]: no listening sockets available, shu...n
Jan 17 17:59:45 hackdays httpd[2187]: AH00015: Unable to open logs
Jan 17 17:59:46 hackdays systemd[1]: httpd.service: main process exited, ...E
Jan 17 17:59:46 hackdays kill[2188]: kill: cannot find process ""
Jan 17 17:59:46 hackdays systemd[1]: httpd.service: control process exite...1
Jan 17 17:59:46 hackdays systemd[1]: Failed to start The Apache HTTP Server.
Jan 17 17:59:46 hackdays systemd[1]: Unit httpd.service entered failed state.
Jan 17 17:59:46 hackdays systemd[1]: httpd.service failed.

【问题讨论】:

标签: linux apache centos


【解决方案1】:

从堆栈跟踪中我可以看到以下内容

地址已被使用:

您能否检查该端口是否已被其他进程使用。

【讨论】:

  • 感谢您的快速回复。但老实说,我不喜欢你的回复@halfer 我不是孩子,我接受我的错误,即我没有阅读我可以发布的内容或我不能发布的内容。但是你不应该重复一行1000次。这真是侮辱。不需要你的帮助......不是mongo!
猜你喜欢
  • 2022-01-11
  • 2021-04-02
  • 1970-01-01
  • 2018-03-23
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多