7
tomcat JDK 部署
source link: https://blog.51cto.com/u_15148274/5446078
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
tomcat JDK 部署
原创解释
tomcat 是用来跑java网站的一容器,而tomcat运行需要依赖于java虚拟机
不管是linux平台还是Windows平台要想运行一个java的应用(因为tomcat本身也是用Java开发出来的)需要有支持Java运行的一个环境------JVM(Java虚拟机)
JDK可以提供Java虚拟机
JDK 可以去Oracle官方网站上下载
Oracle官方JDK下载地址: https://www.oracle.com/technetwork/java/javase/downloads/index.html
如果是linux可以直接使用yum进行安装
CentOS7上yum安装openjdk
yum list | grep jdk 搜一下jdk的包
yum -y install java-1.8.0-openjdk.x86_64 下载安装
Tomcat官方网站和下载地址:
网站
http://tomcat.apache.org/
地址
https://tomcat.apache.org/download-90.cgi
Tomcat 官网地址版本:
我这边下载的是9版本免编译的二进制的包
右键复制下载地址 使用wget 下载
我这边下载路径放到了/usr/local/src/ 下
cd /usr/local/src/
wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.64/bin/apache-tomcat-9.0.64.tar.gz --no-check-certificate (--no-check-certificate 如果下载提示证书过期加上这条)
tar -zxvf apache-tomcat-9.0.64.tar.gz 解压
mv apache-tomcat-9.0.64 /usr/local/tomcat 更改位置路径
/usr/local/tomcat/bin/startup.sh 启动
ps aux |grep java
ps aux |grep tomcat 启动之后查看 java和tomcat的进程状态
查看端口
netstat -lntp |grep java 查看Java 端口
8080为WEB端口
8005 shutdown(管理端口)
8009 AJP端口(可以让第三方的应用连接这个接口,和Tomcat结合起来)
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK