Jdk1.8的安裝(Linux和windows)

來源:互聯網
上載者:User

標籤:lrzsz   environ   dha   地址   rac   tools   www   uil   port   

1.1 JDK1.8
JDK下載:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
1.2 系統內容
[[email protected] ~]# cat /etc/redhat-releaseCentOS Linux release 7.2.1511 (Core)[[email protected] ~]# uname -aLinux LNB 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
1.2.1 部署java環境

#使用yum –y install lrzsz 安裝上傳下載工具

[[email protected] tools]# mkdir /application[[email protected] ~]# mkdir /server/tools –p[[email protected] ~]# cd /server/tools[[email protected] tools]# rz[[email protected] tools]# lsjdk-8u60-linux-x64.tar.gz[[email protected] tools]# tar xf jdk-8u60-linux-x64.tar.gz -C /application/       #解壓到指定目錄[[email protected] tools]# ln -s /application/jdk1.8.0_60 /application/jdk         #設定軟串連便於操作[[email protected] tools]# sed -i.ori ‘$a export JAVA_HOME=/application/jdk\nexport PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH\nexport CLASSPATH=.$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$JAVA_HOME/lib/tools.jar‘ /etc/profile          #加入環境變數[[email protected] tools]# source /etc/profile     #生效[[email protected] tools]# 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)

  

Jdk1.8的安裝(Linux和windows)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.