developer tip

/ etc / nginx를 어떻게 복원 할 수 있습니까?

optionbox 2020. 9. 13. 10:21
반응형

/ etc / nginx를 어떻게 복원 할 수 있습니까? [닫은]


실수로 우분투 11.10 PC에서 / etc / nginx 디렉토리를 제거했습니다. / etc / nginx에서 ngnix 디렉토리를 어떻게 복원 할 수 있습니까?

다음 명령을 수행했습니다.

  1. sudo su
  2. rm -rf /etc/nginx

/ etc / nginx 디렉토리를 다시 얻고 싶습니다. 어떻게?

nginx를 다시 설치하려고 시도했습니다.

  1. sudo apt-get update
  2. sudo apt-get upgrade
  3. sudo apt-get install nginx

그런 다음 다음을 제공합니다.

Reading package lists... Done

Building dependency tree   

Reading state information... Done
E: Unable to locate package nginx

우분투 11.10에서 전체 nginx 소프트웨어를 어떻게 구할 수 있습니까?


다시 생성하려면 먼저 제거를 사용하여 제거하여 구성 파일과 레코드도 제거합니다.

sudo apt-get purge nginx nginx-common nginx-full

그런 다음 다시 설치하십시오.

sudo apt-get install nginx

위의 방법이 작동하지 않으면 dpkg의 --force-confmiss 옵션을 사용해 볼 수도 있습니다.

sudo dpkg --force-confmiss -i /var/cache/apt/archives/nginx-common_*.deb 

참고 URL : https://stackoverflow.com/questions/12362967/how-can-i-restore-etc-nginx

반응형