redis installation
The following describes the installation of redis in the Linux environment. It is often installed under the Linux system at work, and the latest official version no longer has the Windows system version, so the installation under the Windows system will not be introduced for the time being.
The first step, download the latest stable version of the redis installation package, download address: http://redis.io/download. The operation command is as follows:
Download operation command:
wget http://download.redis.io/releases/redis-6.2.6.tar.gz
The second step, unzip the installation package:
tar xzf redis-6.2.6.tar.gz
Enter the installation package:
cd redis-6.2.6/
The third step is to execute the mike command (the mike command executes the compilation)
make
After executing the make command, the compiled redis service program redis-server and the client program redis-cli for testing will appear in the src directory of redis-6.0.8.
The fourth step, start the redis service below:
cd src
The directory is displayed as follows:
Return to the previous directory and enter the following command to start the redis service
./src/redis-server ./redis.conf
The startup page is as follows, indicating that the installation is successful:
The fifth step, link the client
./src/redis-cli -h 127.0.0.1 -p 6380
The following example appears to indicate that the link is successful:
Now that the installation is complete, redis operations can be performed.