linux 下redis php扩展安装、redis服务安装
2016-04-04 21:25
645 查看
安装环境 linux centos6.5
说明:php redis扩展我使用的是2.2.7版本(目前最新 )|| redis服务器3.0.7(目前最新) 使用成功、没有什么版本不匹配问题
正常使用必须保证下面两个前提条件
使用redis的两个条件
1、php成功安装了redis扩展
安装参考
https://pecl.php.net/package/redis https://github.com/phpredis/phpredis#installation
2、安装redis服务、并启动
http://redis.io/download 里面有
The binaries that are now compiled are available in the
You can interact with Redis using the built-in client:
说明:php redis扩展我使用的是2.2.7版本(目前最新 )|| redis服务器3.0.7(目前最新) 使用成功、没有什么版本不匹配问题
正常使用必须保证下面两个前提条件
使用redis的两个条件
1、php成功安装了redis扩展
安装参考
https://pecl.php.net/package/redis https://github.com/phpredis/phpredis#installation
2、安装redis服务、并启动
http://redis.io/download 里面有
Installation
Download, extract and compile Redis with:$ wget http://download.redis.io/releases/redis-3.0.7.tar.gz $ tar xzf redis-3.0.7.tar.gz $ cd redis-3.0.7 $ make
The binaries that are now compiled are available in the
srcdirectory. Run Redis with:
$ src/redis-server【默认加载redis.conf配置文件】
You can interact with Redis using the built-in client:
$ src/redis-cli redis> set foo bar OK redis> get foo "bar"
相关文章推荐
- 一个关于if else容易迷惑的问题
- 小心服务器内存居高不下的元凶--WebAPI服务
- PHP5.2.*防止Hash冲突拒绝服务攻击的Patch
- 深入理解PHP之匿名函数
- 运维入门
- Centos6 编译安装Python
- JSP/PHP基于Ajax的分页功能实现
- redis安装问题小结
- 关于PHP通过PDO用中文条件查询MySQL的问题。
- 什么是设计模式
- 硬盘安装CentOS 6.2以及添加GRUB启动菜单
- CentOS 6.2实战部署Nginx+MySQL+PHP
- PHP数据库长连接mysql_pconnect的细节
- CentOS 7系统配置上的变化解析
- 利用开源软件打造自己的全功能远程工具
- Php Installing An Expansion