一、使用命令解压tomcat的tar包apache
tar -axvf apache-tomcat-8.5.32.tar.gztomcat
二、移动安装包到指定位置ip
mv apache-tomcat-8.5.32 /alidata/local/tomcatit
三、进入tomcat安装位置io
cd /alidata/local/tomcat/变量
四、启动tomcat,中止tomcatjdk
./bin/startup.sh ./bin/shutdown.shservice
五、将tomcat添加到系统服务top
cp ./bin/catalina.sh /etc/init.d/tomcat移动
六、编辑/etc/init.d/tomcat
添加至2-3行
# chkconfig: 2345 10 90
# description: Tomcat service
添加至使用CATALINA_HOME,JAVA_HOME变量以前
CATALINA_HOME=/alidata/local/apache-tomcat-8.5.32
JAVA_HOME=/alidata/local/jdk1.8.0_181
七、使用chkconfig命令添加
chkconfig --add tomcat
chkconfig tomcat on
八、经常使用命令
systemctl start tomcat
systemctl stop tomcat
systemctl status tomcat
九、至此tomcat安装介绍完毕,谢谢观看!