Como desinstalar e reinstalar quando o Apache2 relata um erro? Comando yum do serviço Apache para excluir e reinstalar

Um profissional de marketing digital instalou o painel de controle CWP7 Apache 2.4.25 em um servidor Linux , mas o serviço Apache não iniciou, resultando no seguinte erro: ▼

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.

Como desinstalar e reinstalar quando o Apache2 relata um erro?

Como desinstalar e reinstalar quando o Apache2 relata um erro? Comando yum do serviço Apache para excluir e reinstalar

Portanto, o serviço Apache foi desinstalado e removido do CentOS 7.

Digite o seguinte comando CWP uninstall remove Apache service ▼

yum remove cwp-httpd

Comando yum do serviço Apache para excluir e reinstalar

Passo 1: Instale o serviço Apache usando o comando yum.

Após desinstalar o CWP e excluir o serviço Apache, use o comando yum para reinstalar o serviço Apache▼

yum install cwp-httpd

Passo 2: Ative o Apache, o que requer iniciar o serviço Apache.

Digite o seguinte comando em SSH▼

systemctl start httpd

Passo 3: Em seguida, configure o serviço Apache para iniciar quando o sistema for inicializado:

systemctl enable httpd

Passo 4: Verifique o status do serviço Apache

Exiba informações sobre o Apache e visualize o status do serviço Apache em execução no momento:

systemctl status httpd

 

发表 评论

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

Voltar ao Topo