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