Centos 上的 Apache

标签 apache centos

我正在尝试根据 this tutorial 设置 Apache对于 CentOS 8 .
在教程结束时,我无法重新启动 httpd。
我收到此错误:

httpd.service - The Apache HTTP Server
    Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
    Active: failed (Result: exit-code) since Fri 2021-03-12 16:46:21 CET; 8min ago
      Docs: man:httpd(8)
            man:apachectl(8)
   Process: 8469 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
  Main PID: 8469 (code=exited, status=1/FAILURE)

Mar 12 16:46:21 localhost.localdomain systemd[1]: Starting The Apache HTTP Server...
Mar 12 16:46:21 localhost.localdomain httpd[8469]: AH00526: Syntax error on line 4 of /etc/httpd/sites-enabled/<>.net.conf:
Mar 12 16:46:21 localhost.localdomain httpd[8469]: Invalid command 'DecumentRoot', perhaps misspelled or defined by a module not included in the server configuration
Mar 12 16:46:21 localhost.localdomain system[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Mar 12 16:46:21 localhost.localdomain system[1]: Failed to start The Apache HTTP Server.
Mar 12 16:46:21 localhost.localdomain system[1]: Unit httpd.service entered failed state.
Mar 12 16:46:21 localhost.localdomain system[1]: httpd.service failed.
[tmaciocha@localhost sites-enabled]$

我能做些什么来强制它启动?

最佳答案

您不能强制 Apache 启动,出现该错误;发布您的.conf文件,也许你有错误

关于Centos 上的 Apache,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66603265/

相关文章:

linux - 根据文件类型选择文件提取方法 - tar.bz2、tar.gz、tar.xz

java - 检索最新创建的列限定符

xml - RedHat Enterprise 5 上的 Tomcat servlet 问题

apache - 重写 URL 以重定向并添加前导零

mysql - MariaDB - my.cnf 不在我的服务器 CentOs 中

mysql - 无法在 cent 0s 6.10 上启动 Mysql 5.7

email - SMTP 协议(protocol)同步错误(输入未等待问候就发送)

java - 文件复制后目录大小不匹配

apache - 重定向 http ://to all pages https://

centos - 关于 py4j 异常