Directory artaigil
Have网络 营销Luchd-obrach ann anLinuxAir an fhrithealaiche, stàlaichPannal smachd CWP7 Apache 2.4.25, ach chan eil seirbheis Apache a ’tòiseachadh, tha am mearachd a leanas a’ nochdadh ▼
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.
Mar a nì thu dì-stàladh agus ath-shuidheachadh nuair a bhios Apache2 ag aithris mearachd?
Mar sin, a-steachCentOS 7 Dì-stàlaich agus cuir às don t-seirbheis Apache.
Cuir a-steach an dì-stàladh CWP a leanas thoir air falbh àithne seirbheis Apache ▼
yum remove cwp-httpd
Òrdugh seirbheis Apache yum airson cuir às agus ath-shuidheachadh
第 1 步 :yum òrdugh gus seirbheis Apache a stàladh
Às deidh dhut CWP a dhì-stàladh agus an t-seirbheis Apache a dhubhadh às, cleachd an àithne yum gus an t-seirbheis Apache ath-shuidheachadh▼
yum install cwp-httpd
第 2 步 :Gus Apache a chuir an gnìomh, feumaidh tu seirbheis Apache a thòiseachadh.
Cuir a-steach an àithne a leanas ann an SSH▼
systemctl start httpd
第 3 步 :An ath rud, suidhich an t-seirbheis Apache airson tòiseachadh aig toiseach tòiseachaidh an t-siostaim:
systemctl enable httpd
第 4 步 :Thoir sùil air inbhe seirbheis Apache
Seall fiosrachadh mu Apache agus faic inbhe na seirbheis Apache a tha a’ ruith an-dràsta:
systemctl status httpd
An dòchas blog Chen Weiliang ( https://www.chenweiliang.com/ ) air a cho-roinn “Ciamar a dhì-stàlaicheas agus ath-stàlaich thu nuair a bhios Apache2 ag aithris mearachd? Tha òrdugh seirbheis Apache yum airson sguabadh às agus ath-shuidheachadh" na chuideachadh dhut.
Fàilte gus ceangal an artaigil seo a cho-roinn:https://www.chenweiliang.com/cwl-27525.html
Fuasgail taic AI agus leig soraidh le obair neo-èifeachdach! 🔓💼
🔔 Faigh an “DeepSeek Prompt Word Artifact” sa bhad ann am prìomh eòlaire an t-seanail! 🎯
📚 Miss it = Tuit air chùl gu bràth! Dèan gnìomh a-nis! ⏳💨
Roinn agus toil ma thogras tu e! Is e na h-earrannan agad agus na rudan as toil leinn ar brosnachadh leantainneach!