Redis-linux Installation

Source: Internet
Author: User
Tags benchmark memcached

First, Introduction

Redis is an open source project, a nosql database key-value stored in memory. Similar to memcached, but largely compensates for the lack of memcached, which supports storing more value types, including string, list, set, Zset, and hash. These data types support Push/pop, Add/remove, and intersection sets and differences, and richer operations. Based on this, Redis supports sorting in a variety of different ways. Redis data is cached in the computer's memory and periodically writes the updated data to disk or writes the modification to the appended record file.

Second, installation

1. Official website: https://redis.io/

2. Download

One way: Manually download tar.gz,copy to your own Linux system (I'm using this method).

Way two: Using the Linux command:$ wget http://download.redis.io/releases/redis-2.8.3.tar.gz

3. Unzip-compile-install

(1) New in/usr/directory

$ mkdir/usr/Redis// copy tar xzf redis-2.8.3.tar.gz placed under/usr/redis/and into/usr/redis/$ tar xzf redis-2.8.3. tar.gz$ cd redis-2.8.3|make Install (Ubuntu system uses this command otherwise it will say redis-xx not install)

(2) The tools we need are: in the SRC directory, there are four executables redis-server, Redis-benchmark, Redis-cli, and redis.conf. And then copy it to a directory.

Description: My directory is like this:/usr/redis/redis-2.8.3/src, I copy the above files to:/usr/redis/redis-server, Redis-benchmark, REDIS-CLI and redis.conf

// The current directory is:/usr/redis/redis-2.8.3/srcsudo cp redis-server  /usr/redissudo cp redis-BENCHMARK/USR /redissudo cp redis-cli  /usr/redissudo cp redis.conf  /usr//usr/redis

(3) Start the client and server test (open two windows)

// start the server ./redis-Server redis.conf// start the client test ./redis-cliset name Aaronget name Aaron

Redis-linux Installation

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.