systemctl restart http를 실행하면

 

ob for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.

 

이게 나와서 사이트 접속이 안되는데요. 계정 하나 등록하고 나서 키보드를 잘못누른거 같거든요.

 

이메시지가 뜨면서 사이트 접속이 안되는데 어떻게 해야 할까요

 

센토스 7입니다. ftp등은 접속이 되고요.

  • Lv15
    systemctl status httpd.service 명령어를 쳐보시거나

    /var/log/httpd/error.log 파일을 살펴보면 어느것이 잘못되었는지 알수 있습니다.
  • Lv15 ?
    systemctl status httpd.service 이걸 해보니

    ● httpd.service - The Apache HTTP Server
    Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset : disabled)
    Active: failed (Result: exit-code) since 목 2019-01-31 03:01:11 KST; 5min ago
    Docs: man:httpd.service(8)
    Process: 6674 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, st atus=1/FAILURE)
    Main PID: 6674 (code=exited, status=1/FAILURE)
    Status: "Reading configuration..."

    1월 31 03:01:10 localhost.localdomain systemd[1]: Starting The Apache HTTP ...
    1월 31 03:01:11 localhost.localdomain httpd[6674]: AH00526: Syntax error on...
    1월 31 03:01:11 localhost.localdomain httpd[6674]: SSLCertificateKeyFile: f...
    1월 31 03:01:11 localhost.localdomain systemd[1]: httpd.service: main proce...
    1월 31 03:01:11 localhost.localdomain systemd[1]: Failed to start The Apach...
    1월 31 03:01:11 localhost.localdomain systemd[1]: Unit httpd.service entere...
    1월 31 03:01:11 localhost.localdomain systemd[1]: httpd.service failed.
    Hint: Some lines were ellipsized, use -l to show in full.

    이렇게 나옵니다...
  • ? ?
    syntax error가 보이네요. 설정파일에 뭐 typo있으신듯..
  • ? ?
    다시설치해야 겠네요 감사합니다
  • Lv5

    [soonj@soonj]$ sudo apachectl configtest
    Syntax OK

     

    apachectl configtest 명령어로 syntax를 체크해보셔야...

  • Lv13
    journalctl -xe 로 확인하시면 디테일한 문제를 확인 할 수 있습니다.