Linux设置yum, 安装wget, 安装gcc & epel
1.备份原有的repo目录
mv /etc/yum.repos.d /etc/yum.repos.d.bak
2. 创建新的存放repo的目录
mkdir /etc/yum.repos.d
3.进入yum.repos.d目录
cd /etc/yum.repos.d
4.Repo文件放入/etc/yum.repos.d/ 目录:
文件下载地址:https://shaun.lanzoum.com/iWjpi0u1uveh
5.清除缓存
yum clean all
6.生成缓存
yum makecache
7.安装wget
yum install wget -y
8.安装 gcc (不想截图了o_0,反正跑完都是完毕)
yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel unixODBC-devel
9.安装 epel
yum install epel-release -y