Apache2가 오류를 보고할 때 제거하고 다시 설치하는 방법은 무엇입니까? 삭제하고 다시 설치하는 Apache 서비스 yum 명령

인터넷 營직원Linux서버에서 설치CWP7 제어판 Apache 2.4.25에서 Apache 서비스가 시작되지 않고 다음 오류가 나타납니다▼

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.

Apache2가 오류를 보고할 때 제거하고 다시 설치하는 방법은 무엇입니까?

Apache2가 오류를 보고할 때 제거하고 다시 설치하는 방법은 무엇입니까? 삭제하고 다시 설치하는 Apache 서비스 yum 명령

그래서, 안으로CentOS에 7 Apache 서비스를 제거하고 삭제합니다.

다음 CWP 제거 Apache 서비스 제거 명령을 입력 ▼

yum remove cwp-httpd

삭제하고 다시 설치하는 Apache 서비스 yum 명령

1단계:Apache 서비스를 설치하는 yum 명령

CWP를 제거하고 Apache 서비스를 삭제한 후 yum 명령을 사용하여 Apache 서비스를 다시 설치합니다▼

yum install cwp-httpd

2단계:Apache를 활성화하려면 Apache 서비스를 시작해야 합니다.

SSH에 다음 명령어 입력▼

systemctl start httpd

3단계:그런 다음 시스템 시작 시 Apache 서비스가 시작되도록 설정합니다.

systemctl enable httpd

4단계:Apache 서비스 상태 보기

Apache에 대한 정보를 표시하고 현재 실행 중인 Apache 서비스의 상태를 봅니다.

systemctl status httpd

 

희망 첸 웨이량 블로그( https://www.chenweiliang.com/ ) 공유 "Apache2가 오류를 보고할 때 어떻게 제거하고 다시 설치합니까? 삭제하고 다시 설치하는 Apache 서비스 yum 명령"이 도움이 됩니다.

이 기사의 링크를 공유하는 것을 환영합니다:https://www.chenweiliang.com/cwl-27525.html

최신 업데이트를 받으려면 Chen Weiliang 블로그의 Telegram 채널에 오신 것을 환영합니다!

🔔 채널 상위 디렉토리에서 귀중한 "ChatGPT 콘텐츠 마케팅 AI 도구 사용 가이드"를 가장 먼저 받아보세요! 🌟
📚 이 가이드에는 엄청난 가치가 담겨 있습니다. 🌟이것은 흔치 않은 기회입니다. 놓치지 마세요! ⏰⌛💨
당신이 원한다면 공유하고 좋아하십시오!
당신의 공유와 좋아요는 우리의 지속적인 동기 부여입니다!

 

发表 评论

귀하의 이메일 주소는 공개되지 않습니다. 必填 项 已 用 * 标注

맨위로 스크롤