-
Tomcat下载、解压、上传
https://tomcat.apache.org
- Tomcat环境变量
编辑/etc/profile添加tomcat环境变量 export TOMCAT_HOME=/home/tomcat/apache-tomcat-10.0.23 export PATH=$PATH:$TOMCAT_HOME/bin/ 环境变量立刻生效:source /etc/profile 判断环境变量生效:version.sh
- Tomcat端口
1.编辑/home/tomcat/apache-tomcat-10.0.23/conf/server.xml <Connector port="9090" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /> 2.防火墙打开端口权限 firewall-cmd --zone=public --add-port=9090/tcp --permanent && firewall-cmd --reload
- Tomcat命令
启动:startup.sh 关闭:shutdown.sh 查看:ps -ef | grep -i tomcat
-
Tomcat访问
http://192.168.1.102:9090
Linux安装Tomcat最新版
于 2022-09-22 11:23:05 首次发布