有網絡營銷人員在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報錯怎麼卸載重裝?
於是,在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
希望陳溈亮博客( https://www.chenweiliang.com/ ) 分享的《Apache2報錯怎麼卸載重裝? Apache服務yum命令刪除重裝》,對您有幫助。
歡迎分享本文鏈接:https://www.chenweiliang.com/cwl-27525.html
歡迎加入陳溈亮博客的Telegram 頻道,獲取最新更新!
🔔 率先在頻道置頂目錄獲取寶貴的《ChatGPT 內容行銷AI 工具使用指南》! 🌟
📚 這份指南蘊含價值巨大,🌟難逢的機遇,切勿錯失良機! ⏰⌛💨
喜歡就分享和按贊!
您的分享和按贊,是我們持續的動力!
📚 這份指南蘊含價值巨大,🌟難逢的機遇,切勿錯失良機! ⏰⌛💨
喜歡就分享和按贊!
您的分享和按贊,是我們持續的動力!