Paano i-uninstall at muling i-install kapag nag-ulat ang Apache2 ng isang error? Apache service yum command para tanggalin at muling i-install

Isang digital marketer ang nag-install ng CWP7 Control Panel Apache 2.4.25 sa isang Linux server , ngunit nabigong magsimula ang serbisyo ng Apache, na nagresulta sa sumusunod na error: ▼

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.

Paano i-uninstall at muling i-install kapag nag-ulat ang Apache2 ng isang error?

Paano i-uninstall at muling i-install kapag nag-ulat ang Apache2 ng isang error? Apache service yum command para tanggalin at muling i-install

Samakatuwid, ang serbisyo ng Apache ay na-uninstall at inalis sa CentOS 7.

Ilagay ang sumusunod na CWP uninstall remove Apache service command ▼

yum remove cwp-httpd

Apache service yum command para tanggalin at muling i-install

Hakbang 1: I-install ang serbisyo ng Apache gamit ang utos na yum.

Pagkatapos i-uninstall ang CWP at tanggalin ang serbisyo ng Apache, gamitin ang yum command upang muling i-install ang serbisyo ng Apache▼

yum install cwp-httpd

Hakbang 2: I-activate ang Apache, na nangangailangan ng pagsisimula ng serbisyo ng Apache.

Ipasok ang sumusunod na command sa SSH▼

systemctl start httpd

Hakbang 3: Susunod, i-configure ang serbisyo ng Apache upang magsimula kapag nag-boot ang system:

systemctl enable httpd

Hakbang 4: Suriin ang katayuan ng serbisyo ng Apache

Ipakita ang impormasyon tungkol sa Apache at tingnan ang katayuan ng kasalukuyang tumatakbong serbisyo ng Apache:

systemctl status httpd

 

发表 评论

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

Mag-scroll sa Tuktok