CentOS 7 安装 PHP 7.0以及memcache和redis扩展
2016-05-29 16:44
851 查看
安装EPEL
EPEL 是 Extra Packages for Enterprise Linux 的缩写(EPEL),是用于 Fedora-based Red Hat Enterprise Linux (RHEL) 的一个高质量软件源,所以同时也适用于 CentOS 或者 Scientific Linux 等发行版。
rpm -Uvh https:// href="http://dl.fedoraproject.org" target=_blank>dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install epel-release
安装PHP 采用webtatic的编译版本
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum install php70w php70w-devel php70w-bcmath php70w-fpm php70w-mbstring php70w-pdo php70w-soap php70w-mysql php70w-gd
安装memcached for php7
git clone https://github.com/php-memcached-dev/php-memcached.git
cd php-memcached
git checkout php7
phpize
./configure --disable-memcached-sasl
make && make install
add
extension=memcached.so
to php.ini
安装redis for php7
git clone https://github.com/phpredis/phpredis.git
cd phpredis
git checkout php7
phpize
./configure
make && make install
add
extension=redis.so
to php.ini
EPEL 是 Extra Packages for Enterprise Linux 的缩写(EPEL),是用于 Fedora-based Red Hat Enterprise Linux (RHEL) 的一个高质量软件源,所以同时也适用于 CentOS 或者 Scientific Linux 等发行版。
rpm -Uvh https:// href="http://dl.fedoraproject.org" target=_blank>dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install epel-release
安装PHP 采用webtatic的编译版本
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum install php70w php70w-devel php70w-bcmath php70w-fpm php70w-mbstring php70w-pdo php70w-soap php70w-mysql php70w-gd
安装memcached for php7
git clone https://github.com/php-memcached-dev/php-memcached.git
cd php-memcached
git checkout php7
phpize
./configure --disable-memcached-sasl
make && make install
add
extension=memcached.so
to php.ini
安装redis for php7
git clone https://github.com/phpredis/phpredis.git
cd phpredis
git checkout php7
phpize
./configure
make && make install
add
extension=redis.so
to php.ini
相关文章推荐
- nginx反代后端动静分离 php会话保持使用memcached
- memcached的部署与nosql介绍
- Ehcache Memcache Redis 初步 (一)
- Ehcache Memcache Redis 初步(二)
- memcache安装
- 分布式单服务器实例内存缓存
- ehcache memcache redis 三大缓存比较
- Mybatis无缝集成Memcached分布式缓存系统
- redis与memcached
- memcached安装时memcached: error while loading shared libraries:libevent-2.0.so.5: cannot 的问题解决
- memcache学习之c客户端
- ThinkPHP使用Memcached缓存数据
- NGINX配置从memcache中取静态页面
- centos6.5 安装memcached 代理服务器(Magent)
- 分布式缓存系统Memcached简介与实践
- nginx+tomcat+memcached网页动态请求分配的安装与配置
- 通过telnet连接查看memcache服务器
- 网易视频云技术分享:Facebook memcache优化经验
- linux centos6.5 安装memcached 和php扩展
- Redis与Memcached的区别