Tuhinga Tuhinga
WhakauruaTauhokohoko IpurangiNga kaimahi i rotoLinuxI runga i te tūmau, tāutaPaewhiri mana CWP7 Apache 2.4.25, engari kaore i te tiimata te ratonga Apache, ka puta te hapa e whai ake nei▼
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.
Me pehea te tango me te whakauru ano i te korero a Apache2 he hapa?
Na, i roto iCentOS 7 Wetewete me te whakakore i te ratonga Apache.
Whakauruhia te CWP e whai ake nei tango tango whakahau ratonga Apache ▼
yum remove cwp-httpd
Apache service yum whakahau ki te muku me te tāuta anō
taahiraa 1:yum ki te whakauru i te ratonga Apache
I muri i te tango i te CWP me te whakakore i te ratonga Apache, whakamahia te whakahau yum hei whakauru ano i te ratonga Apache▼
yum install cwp-httpd
taahiraa 2:Hei whakahohe i a Apache, me timata koe i te ratonga Apache.
Whakauruhia te whakahau e whai ake nei ki te SSH▼
systemctl start httpd
taahiraa 3:Panuku, tautuhia te ratonga Apache kia tiimata i te tiimata o te punaha:
systemctl enable httpd
taahiraa 4:Tirohia te mana ratonga Apache
Whakaatuhia nga korero mo Apache ka tirohia te mana o te ratonga Apache e whakahaere ana inaianei:
systemctl status httpd
Hope Chen Weiliang Blog ( https://www.chenweiliang.com/ ) shared "Me pehea te tango me te whakauru ano i te wa e korero ana a Apache2 he hapa? Ko te whakahau a Apache service yum ki te muku me te whakauru ano" he awhina ki a koe.
Nau mai ki te tohatoha i te hono o tenei tuhinga:https://www.chenweiliang.com/cwl-27525.html
Nau mai ki te hongere Telegram o te blog a Chen Weiliang ki te tiki i nga korero hou!
📚 He uara nui tenei aratohu, 🌟He waahi onge tenei, kaua e ngaro! ⏰⌛💨
Tohaina me te pai ki te pai koe!
Ko to tiritiri me o hiahia ko to maatau hihiri tonu!