Redis (2)--redis installation of the growth path of programmers

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

  1. Use vmware to open the virtual machine:
    or use xshell to access the virtual machine
  2. 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
  3. Decompression: tar -zxvf redis-6.2.5.tar.gz
  4. Modify the folder name: mv redis-6.2.5 redis
  5. Enter the root directory: cd redis
  6. Install redis: make
  7. 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
  8. Run redis in the background
    /usr/local/src/redis/src/redis-server /usr/local/src/redis/redis.conf -port xxx (default 6379)
  9. Determine whether to run redis
    ps -ef | grep redis
  10. Check port
    netstat -tunpl | grep 6379
  11. Enter redis
    cd /usr/local/src/redis/src/
    ./redis-cli
    exit redis
    Quit
  12. 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

Guess you like

Origin blog.csdn.net/qq_31236027/article/details/121879741