Bii o ṣe le yọ kuro ati tun fi sii nigbati Apache2 ṣe ijabọ aṣiṣe kan? Iṣẹ Apache yum pipaṣẹ lati paarẹ ati tun fi sii

NiInternet Marketingosise niLinuxLori olupin, fi sori ẹrọIgbimọ iṣakoso CWP7 Apache 2.4.25, ṣugbọn iṣẹ Apache ko bẹrẹ, aṣiṣe atẹle yoo han▼

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.

Bii o ṣe le yọ kuro ati tun fi sii nigbati Apache2 ṣe ijabọ aṣiṣe kan?

Bii o ṣe le yọ kuro ati tun fi sii nigbati Apache2 ṣe ijabọ aṣiṣe kan? Iṣẹ Apache yum pipaṣẹ lati paarẹ ati tun fi sii

Nitorina, niCentOS 7 Yọ kuro ki o si pa iṣẹ Apache rẹ.

Tẹ CWP ti o tẹle yi kuro ni pipaṣẹ iṣẹ Apache kuro ▼

yum remove cwp-httpd

Iṣẹ Apache yum pipaṣẹ lati paarẹ ati tun fi sii

Igbesẹ 1:yum aṣẹ lati fi iṣẹ Apache sori ẹrọ

Lẹhin yiyọ CWP kuro ati piparẹ iṣẹ Apache, lo aṣẹ yum lati tun fi iṣẹ Apache sori ẹrọ▼

yum install cwp-httpd

Igbesẹ 2:Lati mu Apache ṣiṣẹ, o nilo lati bẹrẹ iṣẹ Apache.

Tẹ aṣẹ atẹle ni SSH▼

systemctl start httpd

Igbesẹ 3:Nigbamii, ṣeto iṣẹ Apache lati bẹrẹ ni ibẹrẹ eto:

systemctl enable httpd

Igbesẹ 4:Wo ipo iṣẹ Apache

Ṣe afihan alaye nipa Apache ki o wo ipo iṣẹ Apache ti nṣiṣẹ lọwọlọwọ:

systemctl status httpd

 

Ireti Chen Weiliang Blog ( https://www.chenweiliang.com/ ) pín "Bawo ni a ṣe le yọ kuro ki o tun fi sii nigbati Apache2 ṣe ijabọ aṣiṣe kan? Aṣẹ iṣẹ Apache yum lati paarẹ ati tun fi sii” jẹ iranlọwọ fun ọ.

Kaabo lati pin ọna asopọ ti nkan yii:https://www.chenweiliang.com/cwl-27525.html

Kaabọ si ikanni Telegram ti bulọọgi Chen Weiliang lati gba awọn imudojuiwọn tuntun!

🔔 Jẹ ẹni akọkọ lati gba “ChatGPT Akoonu Titaja AI Itọsọna Lilo Ọpa” ti o niyelori ni itọsọna oke ikanni! 🌟
📚 Itọsọna yii ni iye nla, 🌟Eyi jẹ aye to ṣọwọn, maṣe padanu rẹ! ⏰⌛💨
Pin ati fẹran ti o ba fẹ!
Pinpin rẹ ati awọn ayanfẹ jẹ iwuri wa lemọlemọfún!

 

发表 评论

Adirẹsi imeeli rẹ kii yoo ṣe atẹjade. Awọn aaye ti o nilo ni a lo * 标注

yi lọ si oke