티스토리 뷰
0. 준비 및 기본정보
* 세팅상태 : https://deve1oper.tistory.com/4 포스팅참고
1. 준비
- NginX 설치하기
- AWS EC2
sudo amazon-linux-extras install -y nginx1
-> Amazon linux 기반이기 때문에 amazon-linux-extras 패키지를 지원해준다.
2. NginX 실행하기
- sudo service nginx start
2-1. NginX 기동 확인
- ps -ef | grep nginx
3. NginX URL 포트번호없애기
3-1. root 로그인
- sudo su -
3-2. nginx.conf 수정하기
- 경로 : etc/nginx/nginx.conf
- vi nginx.conf
- 해당 내용 추가
server {
:
:
location / {
proxy_pass http://localhost:9090;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
}
:
:
}
- 해당 스프링부트 설정된 포트로 수정하여 저장한다.
- 작성자는 9090포트 사용 중
3-3. NginX 재시작
- (sudo) service nginx restart
4. 접속방법
'AWS & DOCKER' 카테고리의 다른 글
Docker / 다중 Docker 환경 : 로컬과 Colima에서 명령어 전환하기 (0) | 2025.01.10 |
---|---|
AWS / Git Pull 하여 Spring Boot 실행하는 sh파일 만들기 (0) | 2022.06.12 |
Docker / Springboot + Nginx 빌드 후 Container에 올리기 (0) | 2022.05.13 |
Docker / 나만의 명령어 (0) | 2022.05.12 |
AWS / Spring boot 프로젝트 AWS EC2, RDS에 올리기 (0) | 2022.05.03 |
- Total
- Today
- Yesterday
- Linux caches
- gitignore 적용안됨
- mysql oracle
- 리눅스 메모리 캐시
- linux 포트중복
- docker 명령어
- docker context
- docker --context
- colima docker
- aws git
- Mybatis vs JPA
- colima
- aws
- aws git pull
- Docker
- aws build
- git gitignore
- vue project
- aws spring boot
- Mapper namespcae
- SQL Mapper
- vue npm
- oracle db
- gitignore 적용오류
- Spring Group
- Spring Artifact
- spring boot sh파일
- 메모리 삭제
- nginx
- mybatis
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |