yum命令无法正常运行:
报错:YumRepo Error: All mirror URLs are not using ftp, http[s] or file.centos6 yum失败!
参考:
https://blog.csdn.net/weixin_45621658/article/details/110734514
原因:centos6的默认源在2012年-12月左右被官方搞掉了
一般执行了前3条命令就好了
sed -i "s|enabled=1|enabled=0|g" /etc/yum/pluginconf.d/fastestmirror.conf
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
curl -o /etc/yum.repos.d/CentOS-Base.repo https://www.xmpan.com/Centos-6-Vault-Aliyun.repo
yum clean all
yum makecache
scp命令问题:
报错:-bash: scp: command not found
解决办法:yum install openssh-clients* -y