1.首先就是yum install -y vsftpd 和 yum install -y lftp 下载安装不成功
简单的可以直接在vi /etc/sysconfig/network-scripts/ifcfg-eth0 里面 将
BOOTPROTO=”dhch” 然后Esc 之后:wq 保存退出 shutdown -r now 或者init 6重启虚拟机尝试一番
如果上面不行可以尝试更换yum源 参考于http://yidao620c.iteye.com/blog/1395553 和 http://yidao620c.iteye.com/blog/1395553
首先需要备份一下CentOS-Base.repo
这里由于我之前已经备份过 所以选择n 正常情况下 不会出现询问
vi进入CentOS-Base.repo 进行修改 这里最好使用putty 可以复制 鼠标右键粘贴
#vi /etc/yum.repos.d/Centos-Base.repo
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-$releasever -