我正在尝试根据 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/