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

pagmemerkado gamit ang internetStaff saLinuxSa server, i-installCWP7 control panel Apache 2.4.25, ngunit ang serbisyo ng Apache ay hindi nagsisimula, ang sumusunod na error ay lilitaw▼

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

Kaya, saCentOS 7 I-uninstall at tanggalin ang serbisyo ng Apache.

Ilagay ang sumusunod na CWP uninstall remove Apache service command ▼

yum remove cwp-httpd

Apache service yum command para tanggalin at muling i-install

第 1 步 :yum command upang i-install ang serbisyo ng Apache

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

第 2 步 :Upang i-activate ang Apache, kailangan mong simulan ang serbisyo ng Apache.

Ipasok ang sumusunod na command sa SSH▼

systemctl start httpd

第 3 步 :Susunod, itakda ang serbisyo ng Apache upang magsimula sa pagsisimula ng system:

systemctl enable httpd

第 4 步 :Tingnan 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

 

发表 评论

Ang iyong email address ay hindi maipa-publish. 必填 项 已 用 * Tatak

Mag-scroll sa Tuktok