Conas díshuiteáil agus athshuiteáil nuair a thuairiscíonn Apache2 earráid? Ordú seirbhíse Apache yum a scriosadh agus a athshuiteáil

BíodhMargaíocht Idirlínfoirne iLinuxAr an bhfreastalaí, a shuiteáilPainéal rialaithe CWP7 Apache 2.4.25, ach ní thosaíonn an tseirbhís Apache, is cosúil 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?

Conas díshuiteáil agus athshuiteáil nuair a thuairiscíonn Apache2 earráid? Ordú seirbhíse Apache yum a scriosadh agus a athshuiteáil

Mar sin, iCentOS 7 Díshuiteáil agus scrios an tseirbhís Apache.

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:ordú yum chun seirbhís Apache a shuiteáil

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:Chun Apache a ghníomhachtú, ní mór duit an tseirbhís Apache a thosú.

Cuir isteach an t-ordú seo a leanas i SSH▼

systemctl start httpd

Céim 3:Ar aghaidh, socraigh an tseirbhís Apache chun tosú ag am tosaithe an chórais:

systemctl enable httpd

Céim 4:Féach ar stádas 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

 

发表 评论

Ní fhoilseofar do sheoladh ríomhphoist. Úsáidtear réimsí riachtanacha * Lipéad

Scrollaigh go dtí an Barr