Greinaskrá
Hafa网络 营销starfsfólk íLinuxSettu upp á þjóninumCWP7 stjórnborð Apache 2.4.25, en Apache þjónustan byrjar ekki, eftirfarandi villa birtist▼
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.
Hvernig á að fjarlægja og setja upp aftur þegar Apache2 tilkynnir um villu?
Svo, íCentOS 7 Fjarlægðu og eyddu Apache þjónustunni.
Sláðu inn eftirfarandi CWP uninstall remove Apache þjónustuskipun ▼
yum remove cwp-httpd
Apache þjónustu yum skipun til að eyða og setja upp aftur
Skref 1:yum skipun til að setja upp Apache þjónustu
Eftir að hafa fjarlægt CWP og eytt Apache þjónustunni skaltu nota yum skipunina til að setja upp Apache þjónustuna aftur▼
yum install cwp-httpd
Skref 2:Til að virkja Apache þarftu að ræsa Apache þjónustuna.
Sláðu inn eftirfarandi skipun í SSH▼
systemctl start httpd
Skref 3:Næst skaltu stilla Apache þjónustuna til að byrja við ræsingu kerfisins:
systemctl enable httpd
Skref 4:Skoða Apache þjónustustöðu
Birta upplýsingar um Apache og skoða stöðu þeirrar Apache þjónustu sem er í gangi:
systemctl status httpd
Hope Chen Weiliang blogg ( https://www.chenweiliang.com/ ) deildi „Hvernig á að fjarlægja og setja upp aftur þegar Apache2 tilkynnir um villu? Apache þjónustu yum skipun til að eyða og setja upp aftur“ er gagnlegt fyrir þig.
Velkomið að deila tengli þessarar greinar:https://www.chenweiliang.com/cwl-27525.html
Velkomin á Telegram rásina á bloggi Chen Weiliang til að fá nýjustu uppfærslurnar!
📚 Þessi handbók inniheldur mikið gildi, 🌟Þetta er sjaldgæft tækifæri, ekki missa af því! ⏰⌛💨
Deildu og likeðu ef þú vilt!
Deiling þín og líkar við eru stöðug hvatning okkar!