安装php7
1.安装epel-release
rpm -ivh http://dl
.fedoraproject.org/pub/epel/
7/x86_64/e/epel-release-
7-
5.noarch
.rpm
2.安装PHP7的rpm源
rpm -Uvh https://mirror
.webtatic.com/yum/el7/webtatic-release
.rpm
3.安装PHP7
yum
installphp70w
安装pear 和 pecl
1. 安装pear
Wget http://pear.php.net/go-pear.phar
php go-pear.php
2. 安装pecl
yum
installphp70w-devel
安装mongodb扩展
在php7之前是mongo扩展, 在php7之后是mogodb扩展。两者的用法完全不一样。
1. 安装轻型目录访问协议
yum install openldap-devel
2. 安装mongodb
Pecl install mongodb