1:塞进RedHat6.1DVD光盘或者你挂载iso
2:cd /media/
在/media/目录下会出现RHEL_6.1 x86_64 Disc 1
3:sudo ln -s RHEL_6.1\ x86_64\ Disc\ 1/ redhat (这是为了后面路径好读取)
4:cd /etc/yum.repos.d/
5:cp rhel-source.repo rhel-base.repo
6:vim rhel-base.repo
7:删除rhel-source-beta部分的内容,将上面rhel-source改成rhel-base,enabled=1,gpgcheck=0,baseurl=file:///media/redhat/Server,最后一行也去掉
8:sudo yum clean all
9:sudo yum list
10:接下来就可以用yum来安装你所需要的东西了
1. Present your hostname is
NETWORKING=yes
HOSTNAME=localhost.localdomain
[root@localhost /]#
2. Change by modify /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=Redhat6
[root@localhost /]# init 6
[root@localhost /]#
3. After reboot, we will get new hostname.
login as: root
Red Hat Enterprise Linux Server release 6.3 (Santiago)
Kernel \r on an \m
###############################################################
# ITHELPBLOG.COM#
# Authorized access only! #
# Disconnect IMMEDIATELY if you are not an authorized user!!! #
# All actions Will be monitored and recorded #
###############################################################
root@192.168.0.119′s password:
Last login: Fri Dec 14 09:55:21 2012 from 192.168.0.105
[root@Redhat6 ~]#
Redhat6
[root@Redhat6 ~]#