2013-06-12 2 views
17

나는이 질문을 이전에 잘 물어 봤지만 나는 그들을 통과했지만 내 문제를 해결하지 못한다. 의 nginx/1.4.1 : 우분투에서 nginx를 완전히 제거하는 방법 13.04?

내가 nginx -V을 수행 할 때 여전히

의 nginx 버전 ... 다음 반환 다음 명령을 실제로 모든 것을 제거

sudo apt-get remove nginx 

sudo apt-get purge nginx 

을 실행하지만, 시스템에서의 nginx를 제거하려면 gcc 4.7.3 (우분투/Linaro 4.7.3-1ubuntu1) TLS SNI 지원 활성화 인수 구성 : --prefix =/etc/nginx --sbin-path =/usr/sbin/nginx --conf- path =/etc/nginx/nginx.conf --error-log-path = /var/log/nginx/error.log --http-log-path =/var/log/nginx/access.log --pid-path =/var/run/nginx.pid --lock-path =/var/var/cache/nginx/client_temp --http-proxy-temp-path =/var/cache/nginx/proxy_temp --http-fastcgi- temp-path =/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path =/var/cache/nginx/uwsgi_temp -http-scgi-temp-path =/var/cache/nginx/scgi_temp - 사용자 = nginx - 그룹 = nginx --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module - 와 - http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with 메일 --with-mail_ssl_module --with-파일 AIO --with-IPv6를 --with-http_spdy_module

또한 ps aux | grep nginx은 (는) 실행중인 nginx 서비스를 보여주지 않습니다.

이제 완전히 nginx를 제거했는지 여부를 알 수 없습니까? 그렇지 않다면 그것을 제거하는 방법?

그리고 dpkg -l | grep nginx 반환 다음 ...

II의 nginx-일반적인 모든 작은 강력하고 확장 가능한 웹/프록시 서버 1.2.6-1ubuntu3 - 일반적인 파일
II의 nginx-전체 1.2.6-1ubuntu3 i386 nginx 웹/프록시 서버 (표준 버전)

EDIT : 원본에서 설치했습니다.

+4

제거/제거가 필요한 패키지 이름은 단순히 nginx-full과 nginx-common입니다. 단순히'nginx'뿐만 아니라 ...'dpkg -S $ (which nginx)'로 확인할 수 있습니다. . – twalberg

+0

@ twalberg 그래, 너는 절대적으로 옳다. 그것은 나를 위해 일했습니다. 답변으로 귀하의 의견을 넣어주세요, 나는 그것을 가까운 것으로 표시 할 것입니다. 감사. –

답변

26

출력이 dpkg -l 인 결과, 관련된 패키지 이름은 실제로는 nginx이 아닌 nginx-fullnginx-common입니다. 이것들은 제거가 필요한 패키지입니다.

특정 프로그램이 포함 된 패키지 (예 : nginx)를 찾으려면 언제든지 dpkg -S $(which nginx)을 실행할 수 있습니다.

+0

을'dpkg -S $ (which nginx)'대신'dpkg -l | grep nginx' – ironicaldiction

+0

@ironicaldiction 예, 가능 합니다만,'dpkg -S $ (which nginx)'는'nginx' 프로그램이 포함하고있는 단일 패키지를 나열 할 수 있습니다. – twalberg

+0

좋은 캐치 . 시스템에서 관련 파일을 모두 지우고 싶다면 그냥 생각해보십시오. @ 탈 베르그 – ironicaldiction

관련 문제