linux 下redis php扩展安装、redis服务安装

安装环境 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 里面有

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 src directory. 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"

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值