Detailed steps to install Redis under Linux system

  1. Download the Redis installation package, which can be downloaded from the official website of https://redis.io/
    Insert picture description here
  2. Copy the downloaded Redis installation package to the /opt directory of the Linux system, and extract the command:
    tar -zxvf redis-5.0.8.tar.gz (here, redis-5.0.8.tar.gz is taken as an example)
    Insert picture description here
  3. After the decompression is complete, the folder redis-5.0.8 appears, enter the directory cd redis-5.0.8/
    execute the make command in the redis-5.0.8 directory: make
    Insert picture description here
  4. Verify that the installation is successful. After the make is completed, the compiled redis service program redis-server will appear in the redis-5.0.8 directory, as well as the client program redis-cli for testing. The two programs are located in the installation directory src directory: below Start the redis service.
    Insert picture description here
  5. To start redis in the background, you need to configure redis.conf in the
    redis-5.0.8 directory src, modify as shown in the figure:
    Insert picture description here
  6. Enter redis, enter the following command: (note that this command is run in the redis-5.0.8/src/ directory)
    Insert picture description here
  7. Exit redis
    Insert picture description here

Guess you like

Origin blog.csdn.net/qq_2662385590/article/details/105773953