
1. 해결 방법
- Nginx 설치는
sudo apt-get install nginx - 시작하려면
sudo systemctl start nginx - 상태 확인하려면
sudo systemctl status nginx - 중지하려면
sudo systemctl stop nginx - 설정 파일 테스트하려면
sudo nginx -t
설정이 정상적이라면
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
위 메시지 확인 가능 - 접속 확인하려면 브라우저에 localhost 입력
또는 터미널에 hostname -I 입력 후 나오는 아이피를 브라우저에 입력하기
2. 문제 해결 흐름
https://dreamjy.tistory.com/65
[nginx] ubuntu nginx 설치, 명령어
ubuntu에 nginx를 설치하는 방법에 대해 알아보겠습니다. nginx 설치 apt-get 명령어를 이용하여 간단히 설치할 수 있다. $ sudo apt-get install nginx nginx 명령어 시작 $ sudo systemctl start nginx 상태 확인 $ sudo sys
dreamjy.tistory.com
Nginx는 설치했는데 어떻게 구동시키거나 종료하는지 몰라서 검색해봤더니 이 포스트가 제일 잘 맞았다.
이제 시작이다...!
참고
1. https://dreamjy.tistory.com/65https://codingdiary99.tistory.com/5
'종합 프로젝트 (종료) > 문제 해결' 카테고리의 다른 글
[PS][종합프로젝트] Ubuntu 22.04 - cb.apply is not a function 오류 해결 (0) | 2023.04.10 |
---|---|
[PS][종합프로젝트] Ubuntu 22.04 - 터미널 단축키 실행 안되는 오류 해결 (0) | 2023.04.10 |
[PS][종합프로젝트] Ubuntu 22.04 - 사용자 계정에 root 권한 부여 (0) | 2023.04.10 |