在centos6.3用yum安裝redis


在centos6.3用yum安裝redis

http://blog.sina.com.cn/s/blog_6364150101019701.html一、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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM