zoukankan      html  css  js  c++  java
  • Ubuntu安装redis缓存数据库

    参考:http://blog.csdn.net/xiangwanpeng/article/details/54586087

    1.在下载目录下

    sudo wget http://download.redis.io/releases/redis-3.2.6.tar.gz
    

    2.解压,并复制到/usr/local目录下

    tar -zxvf redis-3.2.6.tar.gz
    mv redis-3.2.6 /usr/local/
    

    3.编译和安装

    cd /redis
    sudo make
    sudo make install
    

    4.在redis安装文件夹中修改文件redis.conf,使得redis在后台运行

    vim redis.conf
    #修改daemonize yes
    

    5.启动redis

    redis-server redis.conf
    redis-cli -p 6379
    

    6.安装redis desktop manager

    按照 http://blog.csdn.net/u013410747/article/details/51706964 的步骤

    安装deb安装包,需要依赖libicu52

    /etc/apt/目录下,先拷贝一份cp sources.list sources.list1

    然后使用网易的源

    deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ trusty main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse
    

     更新源

    sudo apt-get update
    
    sudo apt-get -f install libicu52
    

     最后安装 redis-desktop-manager_0.8.3-120_amd64.deb

  • 相关阅读:
    我所认识的JavaScript
    谈如何边做事,边提高
    对JavaScript开发中困扰的思考
    Soundex语音算法
    Perl分割字符串的一个精妙的写法
    Perl深拷贝
    Git diff hash顺序的问题
    perl命令行批量修改文件内容
    IOS写文件
    删除Linux乱码文件
  • 原文地址:https://www.cnblogs.com/tonglin0325/p/6816081.html
Copyright © 2011-2022 走看看