Redis installation
Before starting the Redis service, first understand the main functions of Redis-related executable files
(1) redis-server -------Redis server
(2) redis-cli -------Redis command line client
(3) redis-benchmark --------- Redis performance testing tool
(4) redis-check-aof ---------- AOF file repair tool
(5) redis-check-dump - -------RDB file checking tool
- Use vmware to open the virtual machine:
or use xshell to access the virtual machine - Put the following resources in the /usr/local/src/ directory (see this directory):
Link: https://pan.baidu.com/s/1rY_GEnlUbmG3CDf-m5xU_Q
Extraction code: rw28 - Decompression: tar -zxvf redis-6.2.5.tar.gz
- Modify the folder name: mv redis-6.2.5 redis
- Enter the root directory: cd redis
- Install redis: make
- Modify the configuration redis.conf under the /usr/local/src/redis/etc directory to set the background startup, that is, daemonize is yes
vim /usr/local/src/redis/etc/redis.conf
/daemonize #Quick positioning - Run redis in the background
/usr/local/src/redis/src/redis-server /usr/local/src/redis/redis.conf -port xxx (default 6379) - Determine whether to run redis
ps -ef | grep redis - Check port
netstat -tunpl | grep 6379 - Enter redis
cd /usr/local/src/redis/src/
./redis-cli
exit redis
Quit - Stop redis service
/usr/local/src/redis/src/redis-cli shutdown
kill -9 process number
pkill redis-server
more links
Introduction to redis https://blog.csdn.net/qq_31236027/article/details/121879604
Introduction to redis data structure https://blog.csdn.net/qq_31236027/article/details/121894713