Skip to content

Latest commit

 

History

History
48 lines (24 loc) · 860 Bytes

4.58-Tomcat_JDK部署.md

File metadata and controls

48 lines (24 loc) · 860 Bytes

JAVA 应用要运行起来,需要一个JVM(JAVA虚拟机)

JVM --> JDK

Oracle官方JDK下载地址: https://www.oracle.com/technetwork/java/javase/downloads/index.html

CentOS7上yum安装openjdk

yum install -y java-1.8.0-openjdk

Tomcat官方网站:

http://tomcat.apache.org/

Tomcat版本:

7.0  8.5  9.0

下载地址:

https://tomcat.apache.org/download-90.cgi
wget https://www-eu.apache.org/dist/tomcat/tomcat-9/v9.0.14/bin/apache-tomcat-9.0.14.tar.gz

安装Tomcat

tar zxf apache-tomcat-9.0.14.tar.gz
mv apache-tomcat-9.0.14 /usr/local/tomcat

启动

/usr/local/tomcat/bin/startup.sh

查看端口

netstat -lntp |grep java 
8080为WEB端口
8005 shutdown(管理端口)
8009 AJP端口(第三方的应用连接这个接口,和Tomcat结合起来)

查看进程

ps aux |grep java   ; ps aux |grep tomcat