Не удалось запустить HTTP-сервер Apache на RHEL7 - PullRequest
0 голосов
/ 07 апреля 2020

У меня возникла проблема при попытке запустить службу http.

[root@adrisccapp01 conf]# systemctl start httpd.service
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.

, и отображается состояние, как показано ниже

[root@adrisccapp01 conf]# systemctl status httpd.service
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Tue 2020-04-07 12:31:21 GST; 17min ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 23127 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
  Process: 23124 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
 Main PID: 23124 (code=exited, status=1/FAILURE)

Apr 07 12:31:21 adrisccapp01 httpd[23124]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
Apr 07 12:31:21 adrisccapp01 httpd[23124]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
Apr 07 12:31:21 adrisccapp01 httpd[23124]: no listening sockets available, shutting down
Apr 07 12:31:21 adrisccapp01 httpd[23124]: AH00015: Unable to open logs
Apr 07 12:31:21 adrisccapp01 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Apr 07 12:31:21 adrisccapp01 kill[23127]: kill: cannot find process ""
Apr 07 12:31:21 adrisccapp01 systemd[1]: httpd.service: control process exited, code=exited status=1
Apr 07 12:31:21 adrisccapp01 systemd[1]: Failed to start The Apache HTTP Server.
Apr 07 12:31:21 adrisccapp01 systemd[1]: Unit httpd.service entered failed state.
Apr 07 12:31:21 adrisccapp01 systemd[1]: httpd.service failed.

Я попытался убить pid и запустить службу еще раз, но не повезло.

Любые предложения!

1 Ответ

0 голосов
/ 08 апреля 2020

Спасибо, проблема была решена убийством pid. Пришлось убить его несколько раз.

...