1.下载Tomcat并发送到Linux端:
链接:https://tomcat.apache.org/download-80.cgi
下载tar.gz包:
2.创建目录,用来存放tomcat包:
[root@liujianfan 08:47:06 /]# mkdir /usr/local/src/tomcat/
接收tomcat包:
[root@liujianfan 08:48:03 /usr/local/src/tomcat]# rz -y
rz waiting to receive.
Starting zmodem transfer. Press Ctrl+C to cancel.
Transferring apache-tomcat-8.5.38.tar.gz...
100% 9445 KB 9445 KB/sec 00:00:01 0 Errors
[root@liujianfan 08:48:19 /usr/local/src/tomcat]# ls
apache-tomcat-8.5.38.tar.gz
[root@liujianfan 08:48:26 /usr/local/src/tomcat]#
解压:
[root@liujianfan 08:48:26 /usr/local/src/tomcat]# tar -xf apache-tomcat-8.5.38.tar.gz
3.进入目录运行启动脚本:
[root@liujianfan 08:50:56 /usr/local/src/tomcat]# cd apache-tomcat-8.5.38/bin/
[root@liujianfan 08:51:16 /usr/local/src/tomcat/apache-tomcat-8.5.38/bin]# ./startup.sh
Using CATALINA_BASE: /usr/local/src/tomcat/apache-tomcat-8.5.38
Using CATALINA_HOME: /usr/local/src/tomcat/apache-tomcat-8.5.38
Using CATALINA_TMPDIR: /usr/local/src/tomcat/apache-tomcat-8.5.38/temp
Using JRE_HOME: /usr/local/src/java/jdk1.8.0_201
Using CLASSPATH: /usr/local/src/tomcat/apache-tomcat-8.5.38/bin/bootstrap.jar:/usr/local/src/tomcat/apache-tomcat-8.5.38/bin/tomcat-juli.jar
Tomcat started.
[root@liujianfan 08:51:43 /usr/local/src/tomcat/apache-tomcat-8.5.38/bin]#
4.在windows端测试:
输入linux端的ip+:8080
出现这个界面则说明tomcat已经安装成功了。
原文地址:https://www.cnblogs.com/hzdwwzz/p/10549803.html
时间: 2024-11-06 11:30:14