centos7.4安装tomcat8

1、进入放置tomcat压缩包目录(/opt/centos_java_soft),并解压移到到 /opt/tomcats 目录

cd /opt/centos_java_soft
tar -zxvf apache-tomcat-8.0.41.tar.gz
mkdir /opt/tomcats
mv apache-tomcat-8.0.41 /opt/tomcats/tomcat8-backup
cd /opt/tomcats
cp -r tomcat8-backup/ tomcat8-langhuaquan-oa/


2、启动tomcat

cd /opt/tomcats/tomcat-backup/bin 
./startup.sh
tailf ../logs/catalina.out


3、关闭tomcat

cd /opt/tomcats/tomcat-backup/bin
./shutdown.sh




同类文章