{"id":230,"title":"centos\u4e0b\u5b89\u88c5redis3.2.0","good":0,"bad":0,"hit":1978,"created_at":"2016-05-15 18:15:56","content":"

\u5b98\u7f51\u4e0b\u8f7d\uff1ahttp:\/\/www.redis.io\/download\u5c3d\u91cf\u4f7f\u7528stable(\u7a33\u5b9a\u7248)linux\u4e0b\u5b89\u88c5$ wget http:\/\/download.redis.io\/releases\/redis-3.2.0.tar.gz$ tar xzf redis-3.2.0.tar.gz$ cd redis-3.2.0$ make\u4fee\u6539\u914d\u7f6e\uff1a[root@localhost redis-3.2.0]# pwd\/root\/redis-3.2.0[root@localhost redis-3.2.0]# ls00-RELEASENOTES  COPYING   INSTALL    README.md   runtest-cluster   srcBUGS             deps      Makefile   redis.conf  runtest-sentinel  testsCONTRIBUTING     dump.rdb  MANIFESTO  runtest     sentinel.conf     utils[root@localhost redis-3.2.0]#\u4fee\u6539redis.conf,\u627e\u5230daemonize\u5c06no\u6539\u4e3ayes\u7136\u540e\u4fdd\u5b58\u4ee5\u540e\u53f0\u65b9\u5f0f\u542f\u52a8\uff1a .\/src\/redis-server .\/redis.conf\u6307\u5b9a\u542f\u52a8\u65f6\u52a0\u8f7d\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u64cd\u4f5c\u5982\u4e0b\uff1a[root@localhost redis-3.2.0]# pwd\/root\/redis-3.2.0[root@localhost redis-3.2.0]# ls00-RELEASENOTES  COPYING   INSTALL    README.md   runtest-cluster   srcBUGS             deps      Makefile   redis.conf  runtest-sentinel  testsCONTRIBUTING     dump.rdb  MANIFESTO  runtest     sentinel.conf     utils[root@localhost redis-3.2.0]# .\/src\/redis-server .\/redis.conf\u67e5\u770b\u662f\u5426\u542f\u52a8\u6210\u529f\uff1a[root@localhost redis-3.2.0]# netstat -anp|more\u5982\u679c\u6210\u529f\u53ef\u4ee5\u770b\u5230\u6709\u4e2a6379\u7aef\u53e3\u5904\u4e8e\u76d1\u542c\u72b6\u6001\u8fdb\u5165redis\u5ba2\u6237\u7aef\uff1a\u5148\u8fdb\u5165redis-3.2.0\u76ee\u5f55\u4e0b\u7684src\u76ee\u5f55[root@localhost redis-3.2.0]# cd src\u7136\u540e\u542f\u52a8redis-cli\u5373\u53ef[root@localhost src]# .\/redis-cli127.0.0.1:6379>\u7528redis\u8bd5\u4e00\u4e0b\uff1a127.0.0.1:6379> set redistest www.hu-rong.comOK127.0.0.1:6379> get redistest"www.hu-rong.com"127.0.0.1:6379>\u9000\u51fa\u5ba2\u6237\u7aef\uff1aquit<\/p>"}