[centos][error] journalctl -xe 로 에러 검색하기.

florentyoon·2020년 12월 19일
0

error

목록 보기
1/1

centOS에 라라벨을 설치하고 mysql을 연결했다. 그리고 phpmyadmin으로 접속하려고 설치하고 셋팅한 후부터 아파치를 재시작하기 위해 명령어를 입력하면 아래와 같은 에러가 뜬다.

[mac1321@vultrguest ~]$ sudo systemctl start httpd
Job for httpd.service failed because the control process exited with error code.
See "systemctl status httpd.service" and "journalctl -xe" for details.

결국 긴 삽질 끝에 해결한 것은 저 journalctl -xe 였다.

저걸 찾아보기만 하면 되는 것이었다.

$ sudo journalctl -xe
AH00526: Syntax error on line 17 of /etc/httpd/conf.d/phpMyAdmin.conf:
ip address '127.0.0.1,' appears to be invalid

나의 경우는 문법 에러였다.
127.0.0.1이 안된다는 것이다. 그래서 저 에러난 위치 찾아서 127.0.0.1을 지움.
그리고 systemctl restart httpd를 실행하니 잘된다.

휴... 에러 보는 것도 능력이다!

profile
florentyoon의 IT 세상

0개의 댓글