转载请注明原文出处
YUM配置 + 安装ntp + java安装
创建目录
# cd /media/
# mkdir dvd1
# mkdir dvd2
# vim /etc/fstab
在尾部追加
/dev/sr0 /media/dvd1 iso9660 defaults,ro 0 0
/dev/sr1 /media/dvd2 iso9660 defaults,ro 0 0
# mount -a
配置yum
# cd /etc/yum.repos.d/
# vim mydvd.repo
name=CentOS-$releasever - DVD
baseurl=file:///media/dvd1
file:///media/dvd2
gpgcheck=0
有网络yum的
[my]
name=CentOS-$releasever - DVD
baseurl=file:///media/dvd1
file:///media/dvd2
http://mirrors.aliyun.com/repo/Centos-6.repo
gpgcheck=0
# yum repolist
安装ntp
# yum -y install ntp
#vi /etc/ntp.conf
添加 server 210.72.145.44
# /etc/init.d/ntpd start
-----------------------------------------------------------------------------------------------------------------------------------------
http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
下载jdk
rpm -ivh jdk-7u79-linux-x64.rpm
# vi /etc/profile.d/jdk.sh
export JAVA_HOME=/usr/java/default
export PATH=$PATH:$JAVA_HOME/bin
16年的学习笔记,留言相互交流。
关注老铁的公众号,从小菜比到老菜比
你假笨