標籤:
在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源。
二、下載並安裝epel
三、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 :更新日誌檢查;檢查file.aof 檔案
/usr/bin/redis-cli :Redis命令列操作工具;也可以用telnet根據其純文字協議來操作
/usr/bin/redis-benchmark :Redis效能測試工具,測試Redis在你的系統及你的配置下的讀寫效能
/usr/sbin/redis-server :Redis伺服器的daemon啟動程式
[[email protected] ~]#redis-benchmark -h localhost -p 6379 -c 100 -n 100000 100個並發串連,100000個請求,檢測host為localhost 連接埠為6379的redis伺服器效能 [[email protected] ~]#redis-cli -h localhost -p 6379 monitor Dump all the received requests in real time; 監控host為localhost,連接埠為6380,redis的串連及讀寫操作 [[email protected] ~]#redis-cli -h localhost -p 6379 info Provide information and statistics about the server 提供host為localhost,連接埠為6380,redis服務的統計資訊
redis連結項目首頁為什麼使用 Redis及其產品定位Redis記憶體使用量最佳化與儲存
在centos6.3用yum安裝redis