1.下载安装包
wget https://dlcdn.apache.org/tomcat/tomcat-10/v10.1.16/bin/apache-tomcat-10.1.16.tar.gz
wget https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.tar.gz
2.解压并修改目录
tar -zxvf apache-tomcat-10.1.16.tar.gz
tar -zxvf jdk-17_linux-x64_bin.tar.gz
mv apache-tomcat-10.1.16 tomcat10
mv jdk-17_linux-x64_bin jdk17
3.添加环境变量
vi .bah_profile
export JAVA_HOME=/opt/jdk17
export PATH=$PATH:$JAVA_HOME/bin
export CATALINA_HOME=/opt/tomcat10
source /home/tomcat/.bash_profile
4.修改文件所属用户
chmod -R tomcat:tomcat /opt
5.查看java与tomcat 版本并启动服务
java -version
/opt/tomcat10/bin/version.sh
./startup.sh
6.查看服务与端口号
7.访问地址
http://192.168.234.129:8080/
标签:bin,tomcat,tar,16,部署,17,apache,安装 From: https://blog.51cto.com/u_11103985/8507643