当前位置:Gxlcms > PHP教程 > centosredis装配

centosredis装配

时间:2021-07-01 10:21:17 帮助过:9人阅读

centos redis 安装
centos6.4+lnmp1.0

1.安装redis
$ wget http://download.redis.io/releases/redis-2.6.16.tar.gz
$ tar xzf redis-2.6.16.tar.gz
$ cd redis-2.6.16
$ make

2.启动服务
$ src/redis-server

3.测试
$ /redis-2.6.16/src/redis-cli
$ set test kk
$ get test

到这里都一切正常,但是怎么安装redis的PHP扩展?
网上各种教程试了都不行,死活装不成

分享到:


------解决方案--------------------
你安装好PHP,直接加载php_redis扩展即可。
------解决方案--------------------
redis的官网都有,很多推荐

http://redis.io/clients

Predis ? ★ Repository JoL1hAHN Mature and supported
phpredis ? ★ Repository yowgi This is a client written in C as a PHP module.
Rediska ? Repository Homepage shumkov
RedisServer Repository OZ Standalone and full-featured class for Redis in PHP
Redisent ? Repository justinpoliey
Credis Repository colinmollenhour Lightweight, standalone, unit-tested fork of Redisent which wraps phpredis for best performance if available.

人气教程排行