Centos 安装Tomcat

先安装java JDK

yum install java-1.8.0* -y
[root@localhost local]# java -version
openjdk version "1.8.0_222"
OpenJDK Runtime Environment (build 1.8.0_222-b10)
OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)
[root@localhost local]# javac -version
javac 1.8.0_222

 

从镜像网站下载tomcat 代码

http://mirror.23media.de/apache/tomcat/

选取需要的版本,

Centos 安装Tomcat

注意,通常在bin目录下载文件就好了

这是具体的下载链接

wget http://mirror.23media.de/apache/tomcat/tomcat-7/v7.0.96/bin/apache-tomcat-7.0.96.tar.gz
tar zxvf apache-tomcat-7.0.96.tar.gz
mv apache-tomcat-7.0.96 /usr/local/tomcat7

需要启动时,直接

/usr/local/tomcat7/bin/startup.sh

 

上一篇:My first win32 application program


下一篇:在linux中设置优先使用ipv4,而不是ipv6