apache - 在 centos 8 上安装 Apache/2.4.37 时出错
问题描述
我该如何解决这个错误?一直在尝试在 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 配置以验证日志文件的权限和路径。
推荐阅读
- c# - C# 等效于 Delphi 的“类”函数/过程
- hyperledger-fabric - 关于在 Hyperledger Fabric v1.3 中实例化 Java 链码的问题 - 无法调用链码名称:“lscc”
- sql-server - 不使用EXISTS引入子查询时,选择列表中只能指定一个表达式(sql server 2014)
- angularjs - 如何从控制器刷新单击按钮上的自定义指令
- episerver-7 - Episerver 文件夹顺序排序结构正在网站上体现
- mysql - 生成随机数的我的 SQL 版本错误
- azure-service-fabric - 如何从 Service Fabric 运行时重新启动/回收基础 VM
- intellij-idea - 在 toString 生成中使用 getter
- javascript - 非法参数:未定义,字符串
- c - 通过引用传递函数来更改数组的元素