📁DevOps
[AWS] Job for nginx.service failed because the control process exited with error code. 에러
yujch
2023. 3. 8. 02:30
반응형
"Job for nginx.service failed because the control process exited with error code."
# nignx 상태 확인
systemctl status nginx.service
"Failed to start A high performance web server and a reverse proxy server."
- 포트 번호가 충돌난 것
>>apache가 깔려있는 경우
# apache 사용 멈춤
sudo service apache2 stop
>> apache문제가 아닌 경우
# 80번 포트 확인하기
netstat -anp | grep 80
=> nginx가 사용중
# nginx PID 확인하기
ps -aef | grep nginx
# PID 죽이기 (맨 아래 빼고)
# Kill -9 {PID}
kill -9 7245
kill -9 7249
kill -9 7250
# nginx PID 재확인하기
ps -aef | grep nginx
=> 3개 삭제된 것을 확인
# 80번 포트 재확인하기
netstat -anp | grep 80
=> 위의 3개가 없어진것을 확인
#nginx 재시작
sudo service nginx restart
#nginx 상태 확인
systemctl status nginx.service
성공!
반응형