无法使用公共 IP 地址启动 Apache

无法使用公共 IP 地址启动 Apache

我正在尝试启动 apache 服务器,它使用 localhost 和端口 80。当我将 localhost 更改为公共 IP 地址并运行 sudo 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.

端口 8080 出现同样的错误。

我正在使用 RedHat Oracle Linux。

systemctl状态:

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 пет 2021-12-24 10:05:50 GMT; 30min ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 16641 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)
  Process: 12998 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS)
  Process: 25587 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
 Main PID: 25587 (code=exited, status=1/FAILURE)

дец 24 10:05:50 instance-20211223-1319 systemd[1]: Starting The Apache HTT...
дец 24 10:05:50 instance-20211223-1319 httpd[25587]: (99)Cannot assign req...
дец 24 10:05:50 instance-20211223-1319 httpd[25587]: no listening sockets ...
дец 24 10:05:50 instance-20211223-1319 httpd[25587]: AH00015: Unable to op...
дец 24 10:05:50 instance-20211223-1319 systemd[1]: httpd.service: main pro...
дец 24 10:05:50 instance-20211223-1319 systemd[1]: Failed to start The Apa...
дец 24 10:05:50 instance-20211223-1319 systemd[1]: Unit httpd.service ente...
дец 24 10:05:50 instance-20211223-1319 systemd[1]: httpd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

相关内容