0

我该如何解决这个错误?一直在尝试在 centos 8 机器上安装 apache 网络服务器。期待您的回复,谢谢!!

 httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
  Drop-In: /usr/lib/systemd/system/httpd.service.d
           └─php-fpm.conf
   Active: failed (Result: exit-code) since Sat 2020-04-25 08:52:36 +0545; 10min ago
     Docs: man:httpd.service(8)
  Process: 834 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
 Main PID: 834 (code=exited, status=1/FAILURE)
   Status: "Reading configuration..."

Apr 25 08:52:28 localhost.localdomain systemd[1]: Starting The Apache HTTP Server...
Apr 25 08:52:35 localhost.localdomain httpd[834]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localh>
Apr 25 08:52:35 localhost.localdomain httpd[834]: (13)Permission denied: AH00072: make_sock: could not bind to address [::]:53
Apr 25 08:52:35 localhost.localdomain httpd[834]: (13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:53
Apr 25 08:52:35 localhost.localdomain httpd[834]: no listening sockets available, shutting down
Apr 25 08:52:35 localhost.localdomain httpd[834]: AH00015: Unable to open logs
Apr 25 08:52:36 localhost.localdomain systemd[1]: httpd.service: Main process exited, code=exited, status=1/FAILURE
Apr 25 08:52:36 localhost.localdomain systemd[1]: httpd.service: Failed with result 'exit-code'.
Apr 25 08:52:36 localhost.localdomain systemd[1]: Failed to start The Apache HTTP Server.
4

1 回答 1

0

默认情况下,端口 53 是 DNS 端口。所以看起来你已经绑定了,或者其他东西在你的服务器上运行并且已经在使用这个端口。

尝试更改配置中的端口或停止绑定/DNS 服务,但最好更改 apache 配置中的端口。

而且您的日志文件似乎也有问题。检查您的 apache 配置以验证日志文件的权限和路径。

于 2020-04-25T05:15:54.697 回答