- Download the corresponding version of Redis from the official website: https://redis.io/download
- Put the compressed package in the /opt directory and decompress it: tar -zxvf redis-5.0.8.tar.gz , the Redis directory is as follows:
- Check make: make -v , if not, yum install gcc-c++
- Make compile in the Redis directory: make
- Installation: make install
- After installation, enter /usr/local/bin to view
- Make a copy of Redis.conf in the Redis directory, myredis.conf
- Modify the configuration file myredis.conf and set Redis to run in the background (no change yes)
- Enter redis-server myredis.conf to run the Redis server
- Enter redis-cli -p 6379 to run the Redis client, and enter ping
- View Redis process ps -ef | grep redis
- Shut down Redis: enter shutdown, exit on the client
Redis 5.0.8-Linux-CentOS 7 installation
Guess you like
Origin blog.csdn.net/H_X_P_/article/details/107295674
Recommended
Ranking