리눅스에 nginx 설치, 라즈베리 파이 우분투에 nginx 설치

설치하다

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-savenginx가 읽을 것입니다.nginx.conf
여기에 이미지 설명 삽입

nginx.html nginx의 파일 위치

cd /etc/www/html/
sudo nano index.nginx-debian.html
전환하고 기본 html 파일 열기
여기에 이미지 설명 삽입

추천

출처blog.csdn.net/GoodCooking/article/details/129483956