Si të çinstaloni dhe riinstaloni kur Apache2 raporton një gabim? Komanda yum e shërbimit Apache për të fshirë dhe riinstaluar

kamMarketingu në internetStafi nëLinuxNë server, instaloniPaneli i kontrollit CWP7 Apache 2.4.25, por shërbimi Apache nuk fillon, shfaqet gabimi i mëposhtëm ▼

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.

Si të çinstaloni dhe riinstaloni kur Apache2 raporton një gabim?

Si të çinstaloni dhe riinstaloni kur Apache2 raporton një gabim? Komanda yum e shërbimit Apache për të fshirë dhe riinstaluar

Pra, nëCentOS 7 Çinstaloni dhe fshini shërbimin Apache.

Futni komandën e mëposhtme të çinstalimit të CWP për heqjen e shërbimit Apache ▼

yum remove cwp-httpd

Komanda yum e shërbimit Apache për të fshirë dhe riinstaluar

第 1 步:komanda yum për të instaluar shërbimin Apache

Pas çinstalimit të CWP dhe fshirjes së shërbimit Apache, përdorni komandën yum për të riinstaluar shërbimin Apache ▼

yum install cwp-httpd

第 2 步:Për të aktivizuar Apache, duhet të nisni shërbimin Apache.

Futni komandën e mëposhtme në SSH▼

systemctl start httpd

第 3 步:Më pas, vendosni shërbimin Apache që të fillojë në fillimin e sistemit:

systemctl enable httpd

第 4 步:Shikoni statusin e shërbimit Apache

Shfaqni informacion rreth Apache dhe shikoni statusin e shërbimit Apache që funksionon aktualisht:

systemctl status httpd

 

发表 评论

Adresa juaj e emailit nuk do të publikohet. Përdoren fushat e kërkuara * Etiketa

Scroll to Top