yum源 redis 设置

下载新的yum源
wget
http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm

rpm
-ivh epel-release-6-8.noarch.rpm

yum install php-redis

yum install
php-devel.x86_64

yum install php-pecl-memcache.x86_64

如果php是编译安装
则可以选择这样安装php的相应扩展

pecl install memcache

1:去下面的网站下载EPEL对应的版本:(epel是fedora维护的yum源,里面软件众多)
http://fedoraproject.org/wiki/EPEL
2:我下载的是这个:
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
3:安装epel:

[root@localhost ~]# find / -name "redis*"

 

/var/lib/redis

 

/var/run/redis

 

/var/log/redis

 

/etc/rc.d/init.d/redis

 

/etc/logrotate.d/redis

 

/etc/redis.conf

 

/usr/share/doc/redis-2.4.10

 

/usr/bin/redis-check-dump :用于本地数据库检查;检查file.rdb 文件

 

/usr/bin/redis-check-aof  :更新日志检查;检查file.aof 文件

 

/usr/bin/redis-cli        :Redis命令行操作工具;也可以用telnet根据其纯文本协议来操作

 

/usr/bin/redis-benchmark  :Redis性能测试工具,测试Redis在你的系统及你的配置下的读写性能

 

/usr/sbin/redis-server    :Redis服务器的daemon启动程序

 

 

 

[root@localhost ~]#redis-benchmark -h localhost -p 6379 -c 100 -n 100000 
100个并发连接,100000个请求,检测host为localhost 端口为6379的redis服务器性能 
 
[root@localhost ~]#redis-cli -h localhost -p 6379 monitor 
Dump all the received requests in real time; 
监控host为localhost,端口为6380,redis的连接及读写操作 
 
[root@localhost ~]#redis-cli -h localhost -p 6379 info 
Provide information and statistics about the server 
提供host为localhost,端口为6380,redis服务的统计信息 

 

posted @ 2011-11-21 12:44  facewater  阅读(1004)  评论(0编辑  收藏  举报