- Download the Redis installation package, which can be downloaded from the official website of https://redis.io/
- 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)
- 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
- 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.
- 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:
- Enter redis, enter the following command: (note that this command is run in the redis-5.0.8/src/ directory)
- Exit redis
Detailed steps to install Redis under Linux system
Guess you like
Origin blog.csdn.net/qq_2662385590/article/details/105773953
Ranking