CentOS 7.0 tomcat 설치

590 단어 servicelocalExport
1. 자바 설치
yum install -y java-1.7.0-openjdk

2. tomcat 설치
tar zxf apache-tomcat-7.0.65.tar.gz -C /usr/local/
cd /usr/local/
ln -s apache-tomcat-7.0.65/ tomcat
vim /etc/profile.d/tomcat.sh
    export CATALINA_HOME=/usr/local/tomcat
    export PATH=$PATH:$CATALINA_HOME/bin
. /etc/profile.d/tomcat.sh 
cp /usr/local/tomcat/bin/catalina.sh /etc/init.d/tomcat
vim /etc/init.d/tomcat 
    # chkconfig: 2345 10 90
    # description:tomcat service
    CATALINA_HOME=/usr/local/tomcat
chkconfig --add tomcat
chkconfig tomcat on
service tomcat start

좋은 웹페이지 즐겨찾기