全部博文(51)
分类: LINUX
2009-02-11 17:13:56
#yum install httpd
#chkconfig httpd on
#service httpd start or #/etc/init.d tpd start
在/etc/rc.locat添加自动绑定
mount -o loop /media/CentOS-5.2-i386-bin-DVD.iso /mnt/iso
2.
#mkdir -p /var/www/html/yum/base/5/
3.链接rpm:
mount -o loop /media/CentOS-5.2-i386-bin-DVD.iso /mnt/iso
cd /var/www/html/yum/base/5/
ln -s /mnt/iso/ i386
4.最后,进入/etc/yum.repos.d/目录里,创建一个以local.repo的文件,如下所示:
[base-local]
name=CentOS $releasever - $basearch - Base
failovermethod=priority
baseurl=
enabled=1
gpgcheck=0