2020/02/13 4

nginx + ssl + tomcat (4)

AWS(ubuntu) / nginx / apache tomcat / sts (mybatis) / docker / mysql / vue.js [SSL 설정] 1. aws 접속 후 # sudo apt-get update #apt-get 업데이트 # sudo apt-get install software-properties-common #선행 소프트웨어 설치 # sudo add-apt-repository ppa:certbot/certbot #저장소 추가 # sudo apt-get update #apt-get 업데이트 블로그 보고 따라해서 잘 기억이 나지 않음.. # sudo certbot certonly --webroot -w /var/www/html -d 설치가 끝나면 # sudo certbot certifi..

개발/인프라 2020.02.13

nginx + ssl + tomcat (3)

AWS(ubuntu) / nginx / apache tomcat / sts (mybatis) / docker / mysql / Vue.js [nginx + 톰캣 : 정적파일 , 동적파일 나누지 않음..?아마도] 1. aws 로그인 2. nginx 환경설정 # sudo vim /etc/nginx/sites-available/default proxy_pass http://localhost:8080; 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; 추가하고 저장 종료. 브라우저에 서버 ip로 접속해보면 톰캣 화면이 뜸..

개발/인프라 2020.02.13

nginx + ssl + tomcat (2)

AWS(ubuntu) / nginx / apache tomcat / sts (mybatis) / docker / mysql / vue.js [ nginx설치하기 ] 1. aws 로그인 2. nginx설치 # sudo apt-get install nginx -> Y 더보기 service nginx start : 시작 service nginx stop : 정지 service nginx restart : 재시작 service nginx reload : 설정파일을 재로드 service nginx status : 현재 상태 3. 브라우저에서 서버ip 접속해 보기 (접속이 안된다면 80 포트 열렸는지 확인 # netstat -tnlp 없으면 열기 ) 더보기 https://hue9010.github.io/aws/ng..

개발/인프라 2020.02.13

nginx + ssl + tomcat (1)

AWS(ubuntu) / nginx / apache tomcat / sts (mybatis) / docker / mysql / Vue.js aws 에 docker설치 후 docker에 mysql 올리기 [docker 설치하기] 1. aws 로그인 (pem파일로 로그인 할 경우 # ssh -i '파일명.pem' ubuntu@IP주소 ) 2. sudo apt-get update 3. sudo apt install docker.io => Y 4. done이 나왔다면 docker --version으로 설치 확인 ( sudo docker info 해도 정보 나옴 ) 5. 우분투 사용자에 대한 세부정보 확인 # cat /etc/passwd | grep ubuntu 6. sudo 사용하지 않고 docker comma..

개발/인프라 2020.02.13
반응형