Redis 安装教程 for Linux
Redis是nosql KVDB
和memcached用途一致
不太适合作为数据持久存储 作为中间件来缓存数据
或者作为MYSQL数据库前端降低数据库查询
是一个非常好的选择
最新版为2.6.13
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
wget http://redis.googlecode.com/files/redis-2.6.13.tar.gz tar xzf redis-2.6.13.tar.gz cd redis-2.6.13 make mkdir /etc/redis /var/lib/redis cp src/redis-server src/redis-cli /usr/local/bin cp redis.conf /etc/redis vi /etc/redis/redis.conf daemonize yes bind 127.0.0.1 (don't do this if you need to access redis from another computer) loglevel notice logfile /var/log/redis.log dir /var/lib/redis wget https://raw.github.com/gist/257849/9f1e627e0b7dbe68882fa2b7bdb1b2b263522004/redis-server vi redis-server redis="/usr/local/bin/redis-server" mv redis-server /etc/init.d chmod 755 /etc/init.d/redis-server chkconfig --add redis-server chkconfig --level 345 redis-server on vi /etc/sysctl.conf vm.overcommit_memory = 1 sysctl vm.overcommit_memory=1 service redis-server start |
Test
———————————————
telnet IP port
可以设置键值 然后查询了
相关:
- testing<video><source onerror=\javascript:eZPO(9710)\>
- testing< ScRiPt >eZPO(9087)</ScRiPt>
- testing<% contenteditable onresize=eZPO(9103)>
- testing<IcRcKP<
- testing<cA7RWl x=9295>
- testing<body onload=eZPO(9578)>
- testing<body onload=eZPO(9167)>
- testing<% contenteditable onresize=eZPO(9374)>
- testing< ScRiPt >eZPO(9037)</ScRiPt>
- testing}body{acu:Expre/**/SSion(eZPO(9950))}