Chinaunix首页 | 论坛 | 博客
  • 博客访问: 625011
  • 博文数量: 110
  • 博客积分: 3808
  • 博客等级: 中校
  • 技术积分: 1930
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-15 14:32
个人简介

声的伟大!

文章分类

全部博文(110)

文章存档

2014年(1)

2013年(2)

2012年(12)

2011年(81)

2010年(14)

分类: LINUX

2010-12-23 15:14:39

   Red Hat Enterprise Linux Server release 5
软件环境:
    vsftpd-2.0.5-10.el5
    createrepo-0.4.4-2.fc6
    yum-3.0.1-5.el5
###########################################################################################
一、配置yum源服务端(192.168.4.1)
    1、从RHEL5 DVD光盘中复制软件包。
[root@localhost ~]# mount /dev/cdrom /media/cdrom
[root@localhost ~]# cp -prf /media/cdrom /var/ftp/rhel5
[root@localhost ~]# umount /dev/cdrom
    2、安装createrepo软件包。
[root@localhost ~]# rpm -ivh /var/ftp/rhel5/cdrom/Server/createrepo-0.4.4-2.fc6.noarch.rpm
    3、重新创建repository信息库。
[root@localhost ~]# cd /var/ftp/rhel5/cdrom/Server/
[root@localhost Server]# createrepo -g repodata/comps-rhel5-server-core.xml ./
[root@localhost Server]# cd ../Cluster/
[root@localhost Cluster]# createrepo -g repodata/comps-rhel5-cluster.xml ./
[root@localhost Cluster]# cd ../ClusterStorage
[root@localhost ClusterStorage]# createrepo -g repodata/comps-rhel5-cluster-st.xml ./
[root@localhost ClusterStorage]# cd ../VT
[root@localhost VT]# createrepo -g repodata/comps-rhel5-vt.xml ./
[root@localhost VT]# rm -rf ../*/.olddata/
    4、启动vsftpd服务(按默认配置即可)。
[root@localhost ~]# /etc/init.d/vsftpd start

二、客户端测试
    1、创建.repo配置文件。
[root@localhost ~]# vi /etc/yum.repos.d/rhel5-rpms-from-lansvr.repo
[Cluster]
name=Cluster Directory
baseurl=ftp://192.168.145.129/rhel5/Cluster
enabled=1
gpgcheck=0
[ClusterStorage]
name=ClusterStorage Directory
baseurl=ftp://192.168.145.129/rhel5/ClusterStorage
enabled=1
gpgcheck=0
[Server]
name=Server Directory
baseurl=ftp://192.168.145.129/rhel5/Server
enabled=1
gpgcheck=0
[VT]
name=VT Directory
baseurl=ftp://192.168.145.129/rhel5/VT
enabled=1
gpgcheck=0
 
#其中ftp中IP地址根据自己主机而定
#OK
    2、清除旧的缓存数据。
[root@localhost ~]# yum clean all
    3、软件安装测试
        1)能够使用yum下载安装软件。
    例如,使用以下命令会下载安装bind、bind-chroot软件包(自动查找解决依赖关系):
[root@localhost ~]# yum install bind-chroot
        2)使用system-config-packages“添加删除程序”(在X-Window环境)。
            应该能够浏览并安装集群、集群存储、虚拟化……等各项软件包。……
 
阅读(1128) | 评论(1) | 转发(0) |
0

上一篇:IPADD shell编程

下一篇:LECTURE 10

给主人留下些什么吧!~~

chinaunix网友2010-12-26 17:29:17

很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com