Linux Kosha: https://www.linuxidc.com/topicnews.aspx?page=2&tid=2
Briefly introduce the installation method of redis under ubuntu:
The first:
1: Go to the redis official website ( Https://redis.io/download/ ) to find the redis version you want to choose,
2: Get the address url of the downloaded link,
3: Use the command: wget url (if the download can be successfully downloaded, the download progress will be displayed at the bottom of 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 decompressed file: cd redis-4.0.9
6: Compile the file: make
The compiled file is stored in the src directory under the current path, and then perform the following operations (note that it is under the current path)
Execute: cd src
Execute: ./redis-server (start redis service)
Then execute: ./redis-cli to start the client
The second: install directly with the apt-get command on ubuntu
implement:
$ sudo apt-get update
$ sudo apt-get install redis-server
$ redis-server
Note: If the above interface appears (don't worry), execute ctrl+c to exit (some cannot, you need to open another page), and the redis service is still started at this time
Then execute:
$ redis-cli
Note: 127.0.0.1 is the local host, and 6379 is the port number of redis. Execute the ping command to check whether the network is connected. PONG appears, indicating to successfully install redis