美文网首页
CentOS6.6 安装JDK8+TOMCAT8

CentOS6.6 安装JDK8+TOMCAT8

作者: Aroli | 来源:发表于2018-02-27 09:46 被阅读22次

    1,下载好下面的安装包
    tomcat
    http://219.238.7.69/files/224100000B632531/mirrors.shu.edu.cn/apache/tomcat/tomcat-8/v8.0.50/bin/apache-tomcat-8.0.50.tar.gz
    JDK
    http://download.oracle.com/otn-pub/java/jdk/8u162-b12/0da788060d494f5095bf8624735fa2f1/jdk-8u162-linux-x64.rpm?AuthParam=1519695158_a3d1f83360a1b15349410148342ffd68

    2,在CentOS6.6 的/opt/下建个tools目录,把下载好的安装包用FTP上传到/opt/tools/下。

    3,安装JDK

    cd /opt/tools/

    rpm -ivh jdk-8u162-linux-x64.rpm

    安装完以后确认一下

    java -version

    java version "1.8.0_60"
    Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
    Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode

    4,安装TOMCAT

    cd /opt/tools/

    tar xzvf apache-tomcat-8.0.50.tar.gz

    mv apache-tomcat-8.0.50 /opt/tomcat/

    ./opt/tomcat/bin/startup.sh

    确认一下
    (http://xxx.xxx.xxx.xxx:8080/)能访问就成功了

    相关文章

      网友评论

          本文标题:CentOS6.6 安装JDK8+TOMCAT8

          本文链接:https://www.haomeiwen.com/subject/serpxftx.html