1、扩展列表 https://github.com/phpredis/phpredis/releases

[root@VM_27_0_centos server]# ls
data lib.pl mysql nginx panel php phpinfo phpmyadmin phpredis-4.0.2 phpredis-4.0.2.tar.gz pure-ftpd redis stop

/2、上传到软件目录

root@VM_27_0_centos server]# cd phpredis-4.0.2/
[root@VM_27_0_centos phpredis-4.0.2]# ls
arrays.markdown cluster.markdown config.w32 CREDITS ISSUE_TEMPLATE.md library.h package.xml redis_array.c redis_array_impl.h redis_cluster.h redis_session.c serialize.list
cluster_library.c common.h COPYING debian liblzf mkdeb-apache2.sh php_redis.h redis_array.h redis.c redis_commands.c redis_session.h tests
cluster_library.h config.m4 crc16.h debian.control library.c mkdeb.sh README.markdown redis_array_impl.c redis_cluster.c redis_commands.h rpm
[root@VM_27_0_centos phpredis-4.0.2]# /www/server/php/71/bin/phpize
Configuring for:
PHP Api Version: 20160303
Zend Module Api No: 20160303
Zend Extension Api No: 320160303

/3、执行phpize 生成configure 这是要用到的下列变化

[root@VM_27_0_centos phpredis-4.0.2]# ls
acinclude.m4 cluster_library.c config.h.in config.w32 debian.control library.h mkdeb.sh redis_array.c redis_cluster.c redis_session.h
aclocal.m4 cluster_library.h config.m4 COPYING install-sh ltmain.sh mkinstalldirs redis_array.h redis_cluster.h rpm
arrays.markdown cluster.markdown config.sub crc16.h ISSUE_TEMPLATE.md Makefile.global package.xml redis_array_impl.c redis_commands.c run-tests.php
autom4te.cache common.h configure CREDITS liblzf missing php_redis.h redis_array_impl.h redis_commands.h serialize.list
build config.guess configure.in debian library.c mkdeb-apache2.sh README.markdown redis.c redis_session.c tests

/4、编译安装

[root@VM_27_0_centos phpredis-4.0.2]# ./configure --with-php-config=/www/server/php/71/bin/php-config
[root@VM_27_0_centos phpredis-4.0.2]# make & make install

Installing shared extensions:     /www/server/php/71/lib/php/extensions/no-debug-non-zts-20160303/

NOTE:根据你的phpize 的路径

centos php7.1 redis4.0.9 安装扩展phpredis的更多相关文章

  1. Linux下Redis4.0.12安装、配置、优化

    一.安装 1.检查gcc环境 执行命令,如果Linux系统没有安装gcc编译器,会提示“Command not found” # gcc -v 安装gcc # yum -y install gcc 以 ...

  2. redis4.0.10安装与常用命令

    ----------- redis安装 ------------------------------------------- 安装reids:https://redis.io/download (4 ...

  3. linux下redis4.0.2安装与部署

    一.redis的介绍 Redis是当前比较热门的NOSQL系统之一,它是一个key-value存储系统.和Memcache类似,但很大程度补偿了Memcache的不足,它支持存储的value类型相对更 ...

  4. CentOS 6.5 3.0.4安装agentd

    更改主机名为test3 [root@localhost ~]# cat /etc/sysconfig/network NETWORKING=yes HOSTNAME=test3 关闭selinux [ ...

  5. Centos 7 nginx-1.12.0编译安装

    参考:http://www.nginx.cn/install 也不知道我的系统是否有这些依赖包,试试吧?缺少哪些我就装哪些吧,多踏点坑总是能学到点东西的.   获取nginx包 http://ngin ...

  6. CentOS 7 安装Redis4.0

    redis是一种内存型的NoSQL数据库,优点是快,常用来做缓存用 redis存储数据的方法是以key-value的形式 value类型支持字符串,列表,哈希等多种类型 环境 : CnetOS7    ...

  7. centos 安装单机版 redis4.0.10

    redis源码地址: http://download.redis.io/releases/ 下载 redis-4.0.10.tar.gz  和  redis-stable.tar.gz 第一步:安装g ...

  8. CentOS 7安装Redis4.0.10

    cd /usr/local/src && wget http://download.redis.io/releases/redis-4.0.10.tar.gz && t ...

  9. CentOS 7.0编译安装Nginx1.6.0+MySQL5.6.19+PHP5.5.14

    准备篇: CentOS 7.0系统安装配置图解教程 http://www.osyunwei.com/archives/7829.html 一.配置防火墙,开启80端口.3306端口 CentOS 7. ...

随机推荐

  1. 《基于 Web Service 的学分制教务管理系统的研究与实现》论文笔记(十一)

    标题:基于 Web Service 的学分制教务管理系统的研究与实现 一.基本内容 时间:2014 来源:苏州大学 关键词:: 教务管理系统 学分制 Web Service 二.研究内容 1.教务管理 ...

  2. Spring源码窥探之:@Profile

    Spring为我们提供的多环境启动 1. 配置类,注入三个不同环境的数据源,并加上注解 /** * description: 以下准备了三套不同环境的数据源 * * @author 70KG * @d ...

  3. Yarn (转自之乎者也)

    作者:青俞链接:https://www.zhihu.com/question/34016617/answer/57822812来源:知乎著作权归作者所有.商业转载请联系作者获得授权,非商业转载请注明出 ...

  4. Stirling数入门

    第一类Stirling数 定义 $$\begin{aligned}(x)_n & =x(x-1)...(x-n+1)\\&= s(n, 0) + s(n,1)x +..+s(n,n)x ...

  5. QQ for Mac聊天纪录怎么查找??

    在你Mac上打开你的QQ,选择任意聊天窗口,打字的上面有6个图表快捷键,第6个就是查看聊天记录的功能键

  6. mysql 根据日期时间查询数据

    mysql> select * from table1; +----------+------------+-----+---------------------+ | name_new | t ...

  7. win10照片查看器不能看jpg等格式图片

    1.首先,我们需要使用注册表编辑器来开启Win10系统照片查看器功能,因为其实这个功能是被隐藏了,那么按下Windows徽标键+R键,打开运行命令窗口,输入“regedit”命令. 2.打开注册表编辑 ...

  8. 前后端通信—CORS(支持跨域)

    根据前端跨域的那些事这篇文章中的跨域的理解这一块,我们重新创建两个服务,第一个服务使用了test.html const http = require('http') const fs = requir ...

  9. Redis 下载 安装

    Redis 官网 https://redis.io/ github 主页 https://github.com/antirez/redis 下载页面 https://redis.io/download ...

  10. EXCEL复制可见单元格

    Excel筛选后,复制筛选后的单元格 1, 首先还是复制这一部分内容. 2, CTRL+G打开 "定位"窗口. 3, 在 "定位"窗口中选择"定位条件 ...