centOS 6下通过yum安装php-mssql以使php支持microsoft sql server连接

rpm -qa|grep epel-release
rpm -ivh http://ftp.cuhk.edu.hk/pub/linux/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm
243 [2015-12-18 18:18:07] ll
244 [2015-12-18 18:18:14] yum clean all
245 [2015-12-18 18:18:21] yum makecache
246 [2015-12-18 18:18:58] vi epel
247 [2015-12-18 18:19:05] vi epel.repo
248 [2015-12-18 18:19:26] make clean all
249 [2015-12-18 18:19:37] yum clean all
250 [2015-12-18 18:19:48] yum makecache
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

打开/etc/yum.repos.d/epel.repo,将

[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
修改为

[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
再清理源,重新安装

yum clean all
centOS 6下通过yum安装php-mssql以使php支持microsoft sql server连接
251 [2015-12-18 18:21:50] yum -y install php-mssql
252 [2015-12-18 18:22:04] history