linux下安裝配置JDK+Tomcat+Mysql測試環境

來源:互聯網
上載者:User

標籤:linux下安裝配置jdk+tomcat+mysql測試環境

1、系統內容


CentOS6.5


2、下載JDK,tomcat軟體包,官網可以下載,也可以用命令列下載

    Mysql使用yum安裝


3、linux安裝JDK

    1)下載JDK

       #wget http://download.oracle.com/otn-pub/java/jdk/8u45-b14/jdk-8u45-linux-x64.tar.gz?AuthParam=1434620688_1831ed06c98894056108fddcb5c59167

    2)下載後發現名字有點長,修改一下

        #mv jdk-8u45-linux-x64.tar.gz\?AuthParam\=1434620688_1831ed06c98894056108fddcb5c59167 jdk-8u45-linux-x64.tar.gz

    3)解壓到/usr/local/

       #tar -zxvf jdk-8u45-linux-x64.tar.gz -C /usr/local/

    4)設定JAVA環境變數

        開啟/etc/profile添加

        #vim /etc/profile  

            #set java environment

            JAVA_HOME=/usr/local/jdk1.8.0_45

            CLASSPATH=.:$JAVA_HOME/lib/tools.jar

            PATH=$JAVA_HOME/bin:$PATH

            export JAVA_HOME CLASSPATH PATH

    5)驗證,輸入java

    #java

    

Usage: java [-options] class [args...]

           (to execute a class)

   or  java [-options] -jar jarfile [args...]

           (to execute a jar file)

where options include:

    -d32  use a 32-bit data model if available

    -d64  use a 64-bit data model if available

    -server  to select the "server" VM

                  The default VM is server,

                  because you are running on a server-class machine.

4、安裝Tomcat

    1)下載tomcat

    #wget http://apache.fayea.com/tomcat/tomcat-6/v6.0.44/bin/apache-tomcat-6.0.44.tar.gz

    2)解壓

    #tar -zxvf apache-tomcat-6.0.44.tar.gz -C /usr/local/

    3)啟動tomcat

       # cd apache-tomcat-6.0.44/

       #./startup.sh

    4)訪問tomcat

       http://IP:8080


本文出自 “微雨燕雙飛” 部落格,請務必保留此出處http://haowenliu.blog.51cto.com/5528051/1663318

linux下安裝配置JDK+Tomcat+Mysql測試環境

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.