목록nginx (2)
컴공생의 다이어리
[Ubuntu] Nginx 설정 이 글에서는 Ubuntu에서 Nginx의 기본적인 설치와 설정에 대해서 정리하고자 한다. Nginx 설치 Nginx 설치를 위해서는 아래 명령어를 입력해주면 된다. sudo apt-get install nginx 설치 후 Nginx 실행을 위해서는 아래 명령어 중 하나를 입력해준다. $ service nginx start # or $ sudo service nginx start # or $ sudo systemctl start nginx Nginx 설정 Nginx 관련한 디렉토리 경로는 /etc/nginx이다. 기본적인 환경 설정 파일의 경로는 /etc/nginx/conf.d 디렉토리 하위의 default.conf에 있었다. 혹시나 conf.d 디렉토리 아래에 기본 설정 ..
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 https://velog.io/@jinho_pca/Nginx-%EB%AA%85%EB%A0%B9%EC%96%B4 N..