Apache2報錯怎麼卸載重裝? Apache服務yum命令刪除重裝

網絡營銷人員在Linux服務器上,安裝了CWP7 控制面板Apache 2.4.25,但Apache服務沒有啟動,出現了下面的錯誤▼

httpd.service - Web server Apache
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Wed 2022-04-13 05:21:29 EST; 4min 53s ago
  Process: 12087 ExecStart=/usr/local/apache/bin/apachectl start (code=exited, status=1/FAILURE)
Apr 13 05:21:29 www.etufo.org systemd[1]: Starting Web server Apache...
Apr 13 05:21:29 www.etufo.org apachectl[12087]: AH00526: Syntax error on line 12 of /usr/local/apache/conf/sharedip.conf:
Apr 13 05:21:29 www.etufo.org apachectl[12087]: Invalid command 'Require', perhaps misspelled or defined by a module not included in the server configuration
Apr 13 05:21:29 www.etufo.org systemd[1]: httpd.service: control process exited, code=exited status=1
Apr 13 05:21:29 www.etufo.org systemd[1]: Failed to start Web server Apache.
Apr 13 05:21:29 www.etufo.org systemd[1]: Unit httpd.service entered failed state.
Apr 13 05:21:29 www.etufo.org systemd[1]: httpd.service failed.

Apache2報錯怎麼卸載重裝?

Apache2報錯怎麼卸載重裝? Apache服務yum命令刪除重裝

於是,在CentOS的 7 卸載刪除Apache服務。

輸入以下CWP卸載刪除Apache服務命令 ▼

yum remove cwp-httpd

Apache服務yum命令刪除重裝

第1步:yum命令安裝Apache服務

CWP卸載刪除Apache服務後,yum命令重新安裝Apache服務▼

yum install cwp-httpd

第2步:激活Apache,需要啟動Apache 服務。

在SSH中輸入以下命令▼

systemctl start httpd

第3步:接下來,設置Apache服務在系統啟動時啟動:

systemctl enable httpd

第4步:查看 Apache 服務狀態

顯示有關Apache 的信息,查看當前運行Apache 服務狀態:

systemctl status httpd

 

發表評論

您的郵箱地址不會被公開。 必填項已用 * 標註

回到頁首