gpt4 book ai didi

Apache 更新后无法启动

转载 作者:行者123 更新时间:2023-12-04 19:40:56 25 4
gpt4 key购买 nike

我在 CentOS 7 上运行了一些东西。一切正常,直到完全更新 yum update .从那以后无法启动 Apache。
我尝试了一切,包括删除和重新安装 httpd。
我得到的错误是:

**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 Thu 2020-07-09 20:50:18 CEST; 34min ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 5785 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 5785 (code=exited, status=1/FAILURE)

Jul 09 20:50:18 vps.xyz.com systemd[1]: Starting The Apache HTTP Server...
Jul 09 20:50:18 vps.xyz.com httpd[5785]: [Thu Jul 09 20:50:18.618214 2020] [so:warn] [pid 5785] AH01574: module systemd_module is already ...skipping
Jul 09 20:50:18 vps.xyz.com httpd[5785]: AH00526: Syntax error on line 1 of /etc/httpd/conf/httpd.conf:
Jul 09 20:50:18 vps.xyz.com httpd[5785]: Invalid command '\xef\xbb\xbfServerRoot', perhaps misspelled or defined by a module not included ...guration
Jul 09 20:50:18 vps.xyz.com systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Jul 09 20:50:18 vps.xyz.com systemd[1]: Failed to start The Apache HTTP Server.
Jul 09 20:50:18 vps.xyz.com systemd[1]: Unit httpd.service entered failed state.
Jul 09 20:50:18 vps.xyz.com systemd[1]: httpd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
我如何编辑 httpd.conf 并不重要,它总是向我显示相同的\xef\xbb\xbf 错误。

最佳答案

看起来像一个编码问题。您能否对 httpd.conf 文件的编码类型进行编码。它应该是 UTF-8 Unicode 文本

file httpd.conf
IE

[test@test bin]# file /etc/httpd/conf/httpd.conf
/etc/httpd/conf/httpd.conf: UTF-8 Unicode text
在 Notepad++ 上,您可以使用 Encoding -> Encode in UTF-8 without BOM 选项将其删除

关于Apache 更新后无法启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62822288/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com