본문 바로가기
LEARN/NEED

[NGINX] 엔진엑스 완전 삭제

by 아이엠제니 2024. 1. 11.

 

os: Ubuntu 22.04.2 LTS


 

sudo apt remove --purge nginx

위 명령어로 nginx를 삭제했으나, 깔끔하게 삭제가 되지 않아, 다시 설치하거나 삭제할 때 실패 메시지 같은 게 떴다.

그럴 때는 아래의 명령어를 입력해서 삭제하면 깔끔하게 삭제가 되는 것 같았다.

 

 

apt-get remove --purge nginx nginx-full nginx-common

다시 설치할 때도 아주 설치가 잘 된다.

 

 

참고: https://doitnow-man.tistory.com/entry/nginx-ubuntu-2004%EC%97%90%EC%84%9C-nginx-%EC%99%84%EB%B2%BD%ED%95%9C-%EC%82%AD%EC%A0%9C

300x250