설치하다
sudo apt-get update
sudo apt-get install nginx
오류가 보고되면 종속성을 찾으십시오.
sudo apt-cache showpkg nginx
그런 다음 사용
sudo apt-get update
sudo apt-get install <dependency-name>
dependency-name
종속 이름이며 꺾쇠 괄호를 제거해야 합니다.
nginx 구성 파일 위치
cd /etc/nginx/
sudo cp nginx.conf nginx.conf-save
sudo nano nginx.conf
nginx 구성 파일을 전환하고 백업한 다음 엽니다.
백업 파일 이름은 nginx.conf-save
nginx가 읽을 것입니다.nginx.conf
nginx.html nginx의 파일 위치
cd /etc/www/html/
sudo nano index.nginx-debian.html
전환하고 기본 html 파일 열기