Tomcat 홈페이지 : https://tomcat.apache.org/index.html
Tomcat 홈페이지에서 다운로드가 가능합니다.
설치할 버전은 Tomcat 9버전입니다.
– 설치 과정
# wget http://apache.mirror.cdnetworks.com/tomcat/tomcat-9/v9.0.11/bin/apache-tomcat-9.0.11.tar.gz
# tar xvfz apache-tomcat-9.0.11.tar.gz
# mv apache-tomcat-9.0.11 /usr/local/tomcat
# vi /etc/profile
JAVA_HOME=/usr/local/java
CATALINA_HOME=/usr/local/tomcat
CLASSPATH=.:JAVAHOME/lib/tools.jar:JAVAHOME/lib/tools.jar:CATALINA_HOME/lib/jsp-api.jar:$CATALINA_HOME/lib/servlet-api.jar
PATH=PATH:PATH:JAVA_HOME/bin:$CATALINA_HOME/bin
export JAVA_HOME CLASSPATH PATH CATALINA_HOME
# source /etc/profile
# /usr/local/tomcat/bin/startup.sh
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr/local/java
Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar
Tomcat started.
– 방화벽 설정
# vi /etc/sysconfig/iptables
-A RH-Firewall-1-INPUT -p tcp -m state –state NEW -m tcp –dport 8080 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state –state NEW -m tcp –dport 8005 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state –state NEW -m tcp –dport 8009 -j ACCEPT
# service iptables restart
– 설정
# cp -arp /usr/local/tomcat/bin/catalina.sh /etc/init.d/tomcat
# vi /etc/init.d/tomcat
#!/bin/sh
#
# chkconfig: 345 90 90
# description: init file for tomcat
# processname: tomcat
설정 완료 후 8080포트로 접속하게 되면 아래와 같은 tomcat 페이지가 뜨는 것을 확인해볼 수 있습니다.
'LINUX > WEB' 카테고리의 다른 글
let's encrypt 인증서 설치 (0) | 2019.05.27 |
---|---|
XE Engine 설치 (0) | 2019.05.27 |
NGINX + PHP-FPM 연동 (0) | 2019.05.27 |
Ioncube 설치 (0) | 2019.05.27 |
Cmake 소스설치 (0) | 2019.05.27 |