CentOS7安裝配置Redis-3.0.0

來源:互聯網
上載者:User

CentOS7安裝配置Redis-3.0.0

CentOS7安裝配置Redis-3.0.0

一.安裝必要包

yum install gcc

二.Linux下安裝

#下載wget http://download.redis.io/releases/redis-3.0.0.tar.gztar zxvf redis-3.0.0.tar.gzcd redis-3.0.0#如果不加參數,linux下會報錯make MALLOC=libc

 安裝好之後,開機檔案

#啟動redissrc/redis-server &#關閉redissrc/redis-cli shutdown

測試redis

$ src/redis-cli127.0.0.1:6379> set foo barOK127.0.0.1:6379> get foo"bar"$ 

測試成功

3.redis cluster叢集搭建

建立本機測試環境

建立運行目錄

#建立redis運行目錄mkdir -p redis-server/7000/#複製預設的配置文檔cp redis-3.0.0/redis.conf redis-server/redis.

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.