[研究] Redis 2.4.10 資料庫 安裝(yum) (CentOS 6.5 x64)
2011-01-26
Redis is an open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets.
官方網站
http://redis.io/
下載
http://code.google.com/p/redis/downloads/list
目前最新版 2.8.4 版,於 Jun 2013 釋出
安裝參考
http://redis.io/download
安裝
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum -y install redis
service redis start
chkconfig redis on
測試
[root@localhost ~]# yum list | grep redis
redis.x86_64 2.4.10-1.el6 @epel
hiredis.i686 0.10.1-3.el6 epel
hiredis.x86_64 0.10.1-3.el6 epel
hiredis-devel.i686 0.10.1-3.el6 epel
hiredis-devel.x86_64 0.10.1-3.el6 epel
php-nrk-Predis.noarch 0.8.4-1.el6 epel
php-pecl-redis.x86_64 2.2.4-1.el6 epel
php-redis.x86_64 2.2.2-5.git6f7087f.el6 epel
python-redis.noarch 2.0.0-1.el6 epel
[root@localhost ~]# ps aux | grep redis
redis 2522 0.0 0.6 39936 7076 ? Ssl 12:56 0:00 /usr/sbin/redis-server /etc/redis.conf
root 2537 0.0 0.0 103244 860 pts/1 S+ 12:58 0:00 grep redis
[root@localhost ~]# netstat -ntplu | grep redis
tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 2522/redis-server
[root@localhost ~]# service iptables stop
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Flushing firewall rules: [ OK ]
iptables: Unloading modules: [ OK ]
[root@localhost ~]# redis-cli set foo bar
OK
[root@localhost ~]# redis-cli get foo
"bar"
[root@localhost ~]# yum -y install telnet
[root@localhost ~]# telnet 127.0.0.1 6379
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
set foo 3
+OK
get foo
$1
3
^]
telnet> quit
Connection closed.
[root@localhost ~]#
更多命令介紹參考文檔介紹。
http://code.google.com/p/redis/wiki/CommandReference
(完)
[研究] Redis 2.4.10 資料庫 安裝(yum) (CentOS 6.5 x64)
http://shaurong.blogspot.tw/2014/01/redis-2410-yum-centos-65-x64.html
[研究] Redis 2.0.4 資料庫 安裝 (CentOS 5.5 x86)
http://forum.icst.org.tw/phpbb/viewtopic.php?t=19575
沒有留言:
張貼留言