系统版本:OracleLinux-R5-U7-Server-x86_64-dvd.iso
1. 创建挂载新磁盘(可忽略)
fdisk -l
fdisk /dev/sdb
partprobe
fdisk -l
mkfs -t ext3 /dev/sdb1
mkdir /yum
mount /dev/sdb1 /yum
vim /etc/fstab
/dev/sdb1 /yum ext3 defaults 1 2
2. 挂载安装光盘OracleLinux-R5-U7-Server-x86_64-dvd.iso
mkdir /mnt/dvd
mount /dev/cdrom /mnt/dvd
cp -a /mnt/dvd/* /yum/
3. 配置yum的repo文件
[Server] name=Server baseurl=ftp://10.10.54.111/Server gpgcheck=0 enabled=1 [VT] name=VT baseurl=ftp://10.10.54.111/VT gpgcheck=0 enabled=1 [CLuster] name=Cluster baseurl=ftp://10.10.54.111/Cluster gpgcheck=0 enabled=1 [ClusterStorage] name=ClusterStorage baseurl=ftp://10.10.54.111/Cluster gpgcheck=0 enabled=1
4. 安装vsftpd
cd /yum/Server
rpm -ivh vsftpd.x86_64
vim /etc/vsftpd/vsftpd.conf
anonymous_enable=YES write_enable=YES anon_upload_enable=YES anon_root=/yum
/etc/init.d/vsftpd start
chkconfig vsftpd on
6.完成
yum clean all
yum list
本文出自 “不作恶” 博客,请务必保留此出处http://vflong.blog.51cto.com/8622347/1387402