CentOS7.0にtomcat-7.0.29をインストールするメモ
操作コマンド
# cd /usr/local
# wget http://apache.fayea.com/apache-mirror/tomcat/tomcat-7/v7.0.57/bin/apache-tomcat-7.0.57.tar.gz
# tar -zxv -f apache-tomcat-7.0.29.tar.gz // 解凍
# rm -rf apache-tomcat-7.0.29.tar.gz //削除
# mv apache-tomcat-7.0.29 tomcat
Tomcat起動
# /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/java/jdk1.7.0/jre
Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar
ファイアウォールの設定
8080を開放
# vi + /etc/sysconfig/iptables
#add code
-A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 8080 -j ACCEPT
ファイアウォール起動
# service iptables restart
画面の確認
http://172.17.2.200:8080/
Tomcat停止
# /usr/local/tomcat/bin/shutdown.sh