install redis


  • 安装
  • download redis from : http://redis.io/download

    1. tar xzvf redis-version.tar.gz

    2. cp redis-version/redis.cnf 到 /etc/下面
    cp redis-version/utils/redis_init_script到/etc/init.d/下面
    cp src/redis-server 和 src/redis-cli 到/usr/local/bin下面

    3.修改/etc/redis.cnf

    REDISPORT=6379
    EXEC=/usr/local/bin/redis-server
    CLIEXEC=/usr/local/bin/redis-cli

    PIDFILE=/var/run/redis_${REDISPORT}.pid
    CONF="/etc/redis/${REDISPORT}.conf"

    4. /etc/init.d/redis start

  • Tips about config file
  • 1.redis默认得log是stdout,并且将bash做为自己得守护进程,如果bash进程挂掉了,那么redis-server就会退出。
    修改redis.conf

    daemonize yes

    待续……

    1. #1 by unjail on 2012/01/08 - 09:52

      刚才搜邮件控搜到这里来的。
      我的博客就叫邮件控,不过我明显只是个名称。

      PS:在这一文中回复不代表我懂你的代码——我是非IT人士哈哈

      • #2 by Neo on 2012/01/10 - 04:17

        邮件控 == 不停刷邮件 -_-!

        • #3 by unjail on 2012/01/11 - 07:58

          我倒没有不停的刷。

          不过我也是规律性的检查邮件,其他聊天工具我基本不上

    (will not be published)

    Verify Code   If you cannot see the CheckCode image,please refresh the page again!