CENTOS 6.4 安裝配置OPENJDK-7

來源:互聯網
上載者:User

標籤:centos 6.4   openjdk-7   

測試機器的安裝和配置
安裝linux  centos6.4 mini

這裡省略1000字......


關閉selinux

setenforce 0

vi /etc/sysconfig/selinux -->diabled
關閉iptables 

service iptables off

chkconfig iptables off


連網
配置 sohu yum 源
注意修改裡面的系統架構和版本號碼

sohu鏡像還是比較穩定的


不連網
配置本地源
掛在本地光碟片 到 /mnt
[centos6.4]
name = CENTOS 6.4 DVD
baseurl=file:///mnt
gpgcheck=0
enabled=1


yum makecache  產生緩衝


yum install wget -y

yum groupinstall "Development tools"


關於centos的時間不同步的問題

cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
ntpdate cn.pool.ntp.org


沒有安裝ntpdate的可以yum一下:

yum install -y ntpdate


加入定時計劃任務,每隔10分鐘同步一下時鐘

crontab -e
0-59/10 * * * * /usr/sbin/ntpdate us.pool.ntp.org | logger -t NTP

這樣,我們就可以來解決在CentOS系統中時間不準確的問題了


安裝JDK
yum install java-1.7.0-openjdk.x86_64

驗證安裝 如下顯示正常

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/5D/10/wKioL1Ug-w-ytD3EAAEntW0JxYI727.jpg" title="java -version" alt="wKioL1Ug-w-ytD3EAAEntW0JxYI727.jpg" />





本文出自 “Linux is belong to you” 部落格,請務必保留此出處http://jwh5566.blog.51cto.com/7394620/1629107

CENTOS 6.4 安裝配置OPENJDK-7

相關文章

聯繫我們

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