最新消息:

Redis setup in CentOS6.x

Reids 老鹰 272浏览 0评论
  1. First, make sure the following repos, EPEL and REMI, are installed:
    sudo rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
    sudo rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-6.rpm
    
  2. Check the version of Redis in REMI repo: (As of June 2017, the version is 3.2.6 stable version)
    yum --enablerepo=remi info redis
    
  3. Then install related dependency (jemalloc) from EPEL repo:
    sudo yum --enablerepo=epel install jemalloc
    
  4. Before installation, you should stop the old Redis daemon:
    sudo service redis stop
    
  5. Then install the newer version of Redis:
    sudo yum --enablerepo=remi install redis
    
  6. Edit Redis configuration file if needed:
    sudo vi /etc/redis.conf       #修改其中的 bind 127.0.0.1 为 本机的ip地址。
    
  7. Restart Redis daemon, and make it auto-start on reboot:
    sudo service redis start
    sudo chkconfig redis on
    
  8. Finally, check the version of currently installed Redis:
    redis-cli info | grep redis_version

 

This came from [ server fault ]

转载请注明:冯英胜的博客 » Redis setup in CentOS6.x

发表我的评论
取消评论
表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址