centos6.2
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo -O /etc/yum.repos.d/CentOS-Base.repo 然后使用yum clean all yum makecache 最后才用yum install openssl-devel
若是centos5则用下面链接
网易源 http://mirrors.163.com/.help/CentOS5-Base-163.repo -O /etc/yum.repos.d/CentOS-Base.repo 搜狐源 wget http://mirrors.sohu.com/help/CentOS-Base-sohu.repo -O /etc/yum.repos.d/CentOS-Base.repo
转载于:https://blog.51cto.com/alwaysyunwei/1254566