繁体   English   中英

在 centos 8 上安装 Apache/2.4.37 时出错

[英]Error while installing Apache/2.4.37 on centos 8

如何修复此错误? 一直在尝试在 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.

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

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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM