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.  查看是否启动  
  3.  ps -ef | grep redis  
  4. 如有以下信息说明启动成功:
  5. 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>

猜你喜欢

转载自snow-berry.iteye.com/blog/1543104