개발자/Raspberry Pi3

apache2 리스타트 에러 - Job for apache2.service failed.

지구빵집 2017. 3. 27. 16:56
반응형

 

 

 

아파치2 서버를 설치하고 리스타트 명령을 주었을때 다음과 같이 나올때가 있다.

 

 

1
2
3
pi@raspberrypi:~ $ sudo service apache2 restart
Job for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details.
 
cs

 

이런 경우는 

 

다음 파일 어딘가가 잘못되어 있는 경우다.  /etc/apache2/apache2.conf

 

따라서 파일을 열어서 주석처리라든가 잘못 수정된 부분을 고치고 하면 잘된다.

 

이렇게 한 번 해보자.

 

$apache2ctl configtest

이렇게 하면 에러가 생긴곳이 하이라이트 된다. 수정한 후

 

재시작 해보자.

 

$sudo apt-get install apache2

 

 

 

반응형