티스토리 뷰
aws 설치 후 셋팅
sudo apt-get install g++ curl libssl-dev apache2-utils git-core make automake autoconf
nginx 설치
wget http://nginx.org/keys/nginx_signing.key
sudo apt-get update
sudo apt-get install nginx
서비스 확인
service nginx status
java8 설치
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
버전확인
java -version
sudo apt-get install oracle-java8-set-default
tomcat8 설치
wget http://mirror.apache-kr.org/tomcat/tomcat-8/v8.0.21/bin/apache-tomcat-8.0.21.tar.gz
tar xvf apache-tomcat-8.0.21.tar.gz
sudo mv apache-tomcat-8.0.21 /opt/tomcat8
echo "export CATALINA_HOME=\"/opt/tomcat8\"" >> ~/.bashrc
source ~/.bashrc
톰캣 서버 시작
$CATALINA_HOME/bin/startup.sh
톰캣 서버 init.d 등록 스크립트
#!/bin/bash
start() {
sh $CATALINA_HOME/bin/startup.sh
}
stop() {
sh $CATALINA_HOME/bin/shutdown.sh
}
case $1 in
start|stop) $1;;
restart) stop; start;;
*) echo “Run as $0 “; exit 1;;
esac
--------------------------------------------------------
sudo chmod 755 /etc/init.d/tomcat
nginx + tomcat 연동
nginx congig 수정
sudo vim /etc/nginx/conf.d/default.conf
defautl.con 파일
location / {
proxy_pass http://127.0.0.1:8080;
# root /usr/share/nginx/html;
# index index.html index.htm;
}
vi /opt/tomcat8/conf/tomcat-users.xml
추가
<role rolename="manager"/>
<role rolename="manager-gui"/>
<role rolename="admin"/>
<role rolename="admin-gui"/>
<user username="tomcat" password="tomcat" roles="admin,admin-gui,manager,manager-gui"/>
'SW' 카테고리의 다른 글
Xamarin 시작하기 (0) | 2016.04.08 |
---|---|
퍼실리테이터와 마인드맵 (0) | 2015.05.24 |
tomcat connction pool (0) | 2015.04.14 |
eclipse jsp debug on Server (0) | 2015.04.14 |
스타트업을 위해 더욱 알찬 내용으로 업그레이드된 2-Day 클라우드 개발자 캠프! (0) | 2015.04.02 |
- Total
- Today
- Yesterday
- GCP
- 웹앱 프로그래밍
- mysql
- pythonanywhere
- 자바
- oracle
- nginx
- Cloud
- Java
- 리눅스
- 파이썬
- docker
- javascript
- 오라클
- python
- flask
- github
- 플라스크
- HTML
- 웹앱
- 클라우드
- 부트스트랩
- Visual Studio
- WEB
- Hello World
- 웹앱프로그래밍
- 도커
- GIT
- 자바스크립트
- DB
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |