centos7 安装java+tomcat
环境准备:
1.Linux 系统服务器: CentOS 7
2.yum 3.4.3
3.java 1.8
4.tomcat
yum环境
运行rpm -qa | grep yum
[root@localhost Downloads]# rpm -qa | grep yum yum-metadata-parser-1.1.4-10.el7.x86_64 yum-langpacks-0.4.2-7.el7.noarch PackageKit-yum-1.1.5-2.el7.centos.x86_64 yum-3.4.3-158.el7.centos.noarch yum-utils-1.1.31-46.el7_5.noarch yum-plugin-fastestmirror-1.1.31-46.el7_5.noarch
java环境
先查看是否有java环境: rpm -qa | grep java
如果没有java环境的话,接着就去查找java-1.8.0的可以使用的安装包:yum list | grep java-1.8.0-openjdk
yum list | grep java-1.8.0-openjdk java-1.8.0-openjdk.x86_64 1:1.8.0.191.b12-0.el7_5 @updates java-1.8.0-openjdk-headless.x86_64 1:1.8.0.191.b12-0.el7_5 @updates java-1.8.0-openjdk.i686 1:1.8.0.191.b12-1.el7_6 updates java-1.8.0-openjdk.x86_64 1:1.8.0.191.b12-1.el7_6 updates java-1.8.0-openjdk-accessibility.i686 1:1.8