Linux installation Redis

Source: Internet
Author: User
Tags benchmark install redis

Redis Official website: https://redis.io/download

It is very easy to install Redis under Linux, as described in the following steps (official website):

1) Download the source code, unzip and compile the source code.

$ wget http://download.redis.io/releases/redis-4.0.2.tar.gz$ tar xzf redis-4.0.2.tar.gz$ cd redis-4.0.2$ make

2) After compiling, in the redis-4.0.2 directory, there are 1 executable files redis.conf. And then copy it to a directory.

Mkdir/usr/local/redis
CP Redis.conf/usr/local/redis

3) After compiling, there are four executable files Redis-server, Redis-benchmark, Redis-cli and redis.conf in the SRC directory. And then copy it to a directory.

CP redis-server/usr/local/rediscp REDIS-BENCHMARK/USR/LOCAL/REDISCP redis-cli  /usr/local/redis

4) Enter the/usr/local/redis directory

Cd/usr/local/redis

5) Start Redis service

./redis-server./redis.conf

6) Access to the Redis client

./redis-cli
127.0.0.1:6379> Set name haha
Ok
127.0.0.1:6379> Get Name
"Haha"
127.0.0.1:6379>

7) exit the Redis client

Quit

8) Stop Redis Service

./redis-cli-p Port number shutdown

Linux installation Redis

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.