Nola desinstalatu eta berriro instalatu Apache2-k errore baten berri ematen duenean? Apache service yum komandoa ezabatu eta berriro instalatzeko

Marketin digitaleko arduradun batek CWP7 Control Panel Apache 2.4.25 instalatu zuen Linux zerbitzari batean , baina Apache zerbitzua ez zen abiarazi, eta errore hau gertatu zen: ▼

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.

Nola desinstalatu eta berriro instalatu Apache2-k errore baten berri ematen duenean?

Nola desinstalatu eta berriro instalatu Apache2-k errore baten berri ematen duenean? Apache service yum komandoa ezabatu eta berriro instalatzeko

Beraz, Apache zerbitzua desinstalatu eta kendu egin zen CentOS 7-n.

Sartu hurrengo CWP desinstalatu Apache zerbitzuaren komandoa ▼

yum remove cwp-httpd

Apache service yum komandoa ezabatu eta berriro instalatzeko

1. urratsa: Instalatu Apache zerbitzua yum komandoa erabiliz.

CWP desinstalatu eta Apache zerbitzua ezabatu ondoren, erabili yum komandoa Apache zerbitzua berriro instalatzeko▼

yum install cwp-httpd

2. urratsa: Apache aktibatu, eta horrek Apache zerbitzua abiarazi behar du.

Sartu komando hau SSH▼-n

systemctl start httpd

3. urratsa: Ondoren, konfiguratu Apache zerbitzua sistema abiaraztean abiarazteko:

systemctl enable httpd

4. urratsa: Egiaztatu Apache zerbitzuaren egoera

Erakutsi Apacheri buruzko informazioa eta ikusi une honetan martxan dagoen Apache zerbitzuaren egoera:

systemctl status httpd

 

发表 评论

您的邮箱地址不会被公开。必填项已用*标注

Igo korrituko