首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 操作系统 >

centos5.5装配redis-2.0.4

2012-08-09 
centos5.5安装redis-2.0.4在安装redis的过程中,缺少tclsh8.5wget http://nchc.dl.sourceforge.net/project

centos5.5安装redis-2.0.4

在安装redis的过程中,缺少tclsh8.5

wget http://nchc.dl.sourceforge.net/project/tcl/Tcl/8.5.11/tcl8511-src.zip
? unzip tcl8511-src.zip
? cd tcl8.5.11/
? cd unix/
? ./configure
? make
? make install

?

修改/etc/redis.conf中daemonize no改成yes

是否以后台进程运行,默认为no
daemonize yes

?

  1. ?redis-server?/etc/redis.conf???查看是否启动??
  2. ?ps?-ef?|?grep?redis??如有以下信息说明启动成功:
    root????? 4701? 3842? 0 17:02 pts/0??? 00:00:00 cp -i -p redis-server /usr/local/bin
    root????? 4798???? 1? 0 17:14 ???????? 00:00:00 ./redis-server /etc/redis.conf
    root????? 4852? 3842? 0 17:27 pts/0??? 00:00:00 grep redis

?

[root@localhost redis-2.0.4]# redis-cli

?

redis> set test hello,redis
OK
redis> get test
"hello,redis"
redis>
centos5.5装配redis-2.0.4

热点排行