Artikulo Direktoryo
有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?
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
Hope Chen Weiliang Blog ( https://www.chenweiliang.com/ ) ibinahagi "Paano i-uninstall at muling i-install kapag nag-ulat ng error ang Apache2? Apache service yum command na tanggalin at muling i-install" ay nakakatulong sa iyo.
Maligayang pagdating upang ibahagi ang link ng artikulong ito:https://www.chenweiliang.com/cwl-27525.html
Maligayang pagdating sa Telegram channel ng blog ni Chen Weiliang para makuha ang pinakabagong mga update!
📚 Ang gabay na ito ay naglalaman ng malaking halaga, 🌟Ito ay isang bihirang pagkakataon, huwag palampasin ito! ⏰⌛💨
Share and like kung gusto mo!
Ang iyong pagbabahagi at pag-like ay ang aming patuloy na pagganyak!