Nginx 명령어

parkjh9370·2022년 4월 16일
0

Nginx 설치

sudo apt-get install -y nginx

Nginx 삭제

sudo apt-get remove nginx nginx-common # 설정 파일을 제외한 모든 파일을 제거합니다.

sudo apt-get purge nginx nginx-common # 모든 것을 제거합니다.

sudo apt-get autoremove # 위의 명령을 사용한 후에는 더 이상 필요하지 않은 nginx에서 사용하는 종속성을 제거하기 위해이 명령을 사용하십시오.

Nginx 실행

service nginx start
sudo service nginx start
sudo systemctl start nginx

Nginx 재실행

service nginx restart
sudo service nginx restart
sudo systemctl restart nginx

Nginx 중단

service nginx stop
sudo service nginx stop
sudo systemctl stop nginx

Nginx 상태

service nginx status
sudo service nginx status
ps -ef | grep nginx

0개의 댓글