在centos6.3用yum安装redis

一、centos默认的安装源在官方centos.org上,而redis在第三方的yum源里,所以无法安装,非官方的yum推荐用fedora的epel仓库。当然也可通过配置<wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">/etc/yum.</span><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">repos.d/CentOS-Base.repo文件增加yum源。</span></wbr>
在centos6.3用yum安装redis
二、下载并安装epel
在centos6.3用yum安装redis
三、yum 安装redis
在centos6.3用yum安装redis

在centos6.3用yum安装redis

[[email protected] ~]# 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 <wbr>:更新日志检查;检查file.aof 文件</wbr>
/usr/bin/redis-cli <wbr><wbr><wbr><wbr>:Redis命令行操作工具;也可以用telnet根据其纯文本协议来操作</wbr></wbr></wbr></wbr>
/usr/bin/redis-benchmark <wbr>:Redis性能测试工具,测试Redis在你的系统及你的配置下的读写性能</wbr>
/usr/sbin/redis-server <wbr><wbr>:Redis服务器的daemon启动程序</wbr></wbr>

[[email protected] ~]#redis-benchmark -h localhost -p 6379 -c 100 -n 100000<wbr></wbr>
100个并发连接,100000个请求,检测host为localhost 端口为6379的redis服务器性能<wbr></wbr>

[[email protected] ~]#redis-cli -h localhost -p 6379 monitor<wbr></wbr>
Dump all the received requests in real time;<wbr></wbr>
监控host为localhost,端口为6380,redis的连接及读写操作<wbr></wbr>

[[email protected] ~]#redis-cli -h localhost -p 6379 info<wbr></wbr>
Provide information and statistics about the server<wbr></wbr>
提供host为localhost,端口为63
在centos6.3用yum安装redis