Introduction to the installation of Redis under Ubuntu

Source: Internet
Author: User
Tags redis version install redis

Linux commune:https://www.linuxidc.com/topicnews.aspx?page=2&tid=2

A brief introduction to how to install Redis under Ubuntu:

The first type:

1: Go to Redis official website (Https://redis.io/download/) to find the Redis version you want to select,

2: Get the URL of the link to download,

3: Use command: wget URL (can download the progress of the download will be shown below the command line) (

$ wget http://download.redis.io/releases/redis-4.0.9.tar.gz)

4: Unzip the file TAR-ZXVF redis-4.0.9.tar.gz

5: Enter the extracted file: CD redis-4.0.9

6: Compile file: Make

The compiled file is stored in the SRC directory under the current path, followed by the following operation (note that it is under the current path)

Execution: cd src

Execute:./redis-server (start Redis service)

Then execute:./REDIS-CLI start the client

The second type: Install directly on Ubuntu with the Apt-get command

Perform:

$ sudo apt-get update

$ sudo apt-get install Redis-server

$ redis-server

Note: If the above interface (do not worry), execute CTRL + C exit (some do not need to open a page), the Redis service is still started

Then execute:

$ redis-cli

Note: 127.0.0.1 is a local host, 6379 is the port number of the Redis, and the ping command is performed to detect whether the network is connected. Pong appears, instructions to successfully install Redis

Introduction to the installation of Redis under Ubuntu

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.