腾讯云的yum安装源mirrors.tencentyun.com,无法下载程序包,这里替换成阿里云的mirrors。
[1] 首先备份/etc/yum.repos.d/base.repo
mv /etc/yum.repos.d/base.repo /etc/yum.repos.d/base.backup
[2] 进入yum源配置文件所在文件夹
[root@localhost yum.repos.d]# cd /etc/yum.repos.d/
[3] 下载阿里云的yum源配置文件,放入/etc/yum.repos.d/(操作前请做好相应备份)
[root@localhost yum.repos.d]# wget http://www.fzzsh.com/downloads/CentOS-Base.repo
[4] 运行yum makecache生成缓存
[root@localhost yum.repos.d]# yum makecache
[5] 更新系统
[root@localhost yum.repos.d]# yum -y update
[6] 安装lrzsl
[root@localhost ~]# yum -y install lrzsz
ssh免密码登陆ubuntu腾讯云服务器:http://www.linuxdiyf.com/linux/15611.html