Notice
Recent Posts
Recent Comments
Link
«   2025/04   »
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
Tags
more
Archives
Today
Total
관리 메뉴

Be an Overachiever

[Apache, Tomcat 연동] 2. Tomcat 설치 본문

서버/Apache

[Apache, Tomcat 연동] 2. Tomcat 설치

devson119 2018. 9. 5. 23:04
 
- tomcat 다운 압축 풀고 옮기기
1
2
3
4
cd /home/test/install
wget http://apache.tt.co.kr/tomcat/tomcat-8/v8.5.33/bin/apache-tomcat-8.5.33.tar.gz
tar zxvf apache-tomcat-8.5.33.tar.gz
mv apache-tomcat-8.5.33 /home/test/server/tomcat
cs
 
- tomcat 실행
1
/home/test/server/tomcat/bin/startup.sh
cs
 
==== JDK 설치 안되있을 경우 ====
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program
 
1
2
sudo yum -y install java-1.8.0-openjdk
sudo vi /etc/profile
cs
버전과 경로를 본인 세팅에 맞춰서 제일 밑줄에 추가
1
export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64/jre
cs

변경된 설정 적용

1
source /etc/profile
cs

설치 확인

 

JDK 설치 다시 톰캣 실행
1
/home/test/server/tomcat/bin/startup.sh
cs
=========================
 
- tomcat 서버 확인

1
curl localhost:8080
cs
....

            <p class="copyright">Copyright &copy;1999-2018 Apache Software Foundation.  All Rights Reserved</p>
        </div>
    </body>
 
</html>


Comments