This is an old revision of the document!
安装:
Centos: yum install redis Mac: brew intall redis
配置:
vi /etc/redis/redis.conf set :daemonize yes
运行服务
redis-server /etc/redis/redis.conf
停止服务
redis-cli shutdown
命令行客服端
redis-cli
安装php扩展
pecl install redis vi /etc/php.ini add extension=redis.so
and may need reset php-fpm
主要命令参考:
redis-benchmark:redis性能测试工具 redis-check-aof:检查aof日志的工具 redis-check-dump:检查rdb日志的工具 redis-cli:连接用的客户端 redis-server:redis服务进程