Ubuntu 安装 Redis

  1. 下载解压Redis
    cd /home
    wget http://download.redis.io/redis-stable.tar.gz
    tar xvzf redis-stable.tar.gz
  2. 编译
    cd redis-stable
    make
  3. 复制到path目录
    sudo cp src/redis-server /usr/local/bin/
    sudo cp src/redis-cli /usr/local/bin/
  4. 启动
    redis-server &
0%