Eolaire Eolaire
Shuiteáil margóir digiteach painéal rialaithe CWP7 agus Apache 2.4.25 ar fhreastalaí Linux , ach theip ar an tseirbhís Apache tosú, rud a d’fhág an earráid seo a leanas: ▼
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.
Conas díshuiteáil agus athshuiteáil nuair a thuairiscíonn Apache2 earráid?

Dá bhrí sin, díshuiteáladh agus baineadh an tseirbhís Apache ar CentOS 7.
Cuir isteach an díshuiteáil CWP seo a leanas bain ordú seirbhíse Apache ▼
yum remove cwp-httpd
Ordú seirbhíse Apache yum a scriosadh agus a athshuiteáil
Céim 1: Suiteáil seirbhís Apache ag baint úsáide as an ordú yum.
Tar éis CWP a dhíshuiteáil agus an tseirbhís Apache a scriosadh, bain úsáid as an ordú yum chun an tseirbhís Apache a athshuiteáil▼
yum install cwp-httpd
Céim 2: Gníomhachtaigh Apache, rud a éilíonn seirbhís Apache a thosú.
Cuir isteach an t-ordú seo a leanas i SSH▼
systemctl start httpd
Céim 3: Ansin, cumraigh an tseirbhís Apache le tosú nuair a thosaíonn an córas:
systemctl enable httpd
Céim 4: Seiceáil stádas na seirbhíse Apache
Taispeáin faisnéis faoi Apache agus féach ar stádas na seirbhíse Apache atá á rith faoi láthair:
systemctl status httpd
Tá súil agam go mbeidh an t-alt "Conas Apache2 a Dhíshuiteáil agus a Athshuiteáil Nuair a bhíonn Earráidí ann? Seirbhís Apache a Scriosadh agus a Athshuiteáil Ag Úsáid an Ordú Yum" atá roinnte ar bhlag Chen Weiliang ( https://www.chenweiliang.com/ ) ina chuidiú duit.
Ná bíodh drogall ort nasc an ailt seo a roinnt: https://www.chenweiliang.com/cwl-27525.html
