在centos6.3用yum安装redis

一、centos默认的安装源在官方centos.org上,而redis在第三方的yum源里,所以无法安装,非官方的yum推荐用fedora的epel仓库。当然也可通过配置 /etc/yum.repos.d/CentOS-Base.repo文件增加yum源。

在centos6.3用yum安装redis

二、下载并安装epel

在centos6.3用yum安装redis
三、yum 安装redis
在centos6.3用yum安装redis

在centos6.3用yum安装redis

[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服务的统计信息 

在centos6.3用yum安装redis


转载于:https://my.oschina.net/u/1538660/blog/653356

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值