Redis 5.0.8-Linux-CentOS 7 installation

  1. Download the corresponding version of Redis from the official website: https://redis.io/download
  2. 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:
    Insert picture description here
  3. Check make: make -v , if not, yum install gcc-c++
    Insert picture description here
  4. Make compile in the Redis directory: make
    Insert picture description here
  5. Installation: make install
    Insert picture description here
  6. After installation, enter /usr/local/bin to view
    Insert picture description here
  7. Make a copy of Redis.conf in the Redis directory, myredis.conf
    Insert picture description here
  8. Modify the configuration file myredis.conf and set Redis to run in the background (no change yes)
    Insert picture description here
  9. Enter redis-server myredis.conf to run the Redis server
    Insert picture description here
  10. Enter redis-cli -p 6379 to run the Redis client, and enter ping
    Insert picture description here
  11. View Redis process ps -ef | grep redis
    Insert picture description here
  12. Shut down Redis: enter shutdown, exit on the client
    Insert picture description here

Guess you like

Origin blog.csdn.net/H_X_P_/article/details/107295674