我要评分
获取效率
正确性
完整性
易理解

Verifying Redis

This section describes how to start Redis to check whether it is available.

  1. Start Redis. Here, Redis 6.0.20 is used as an example.
    1
    redis-server /home/redis-6.0.20/redis.conf
    

  2. Re-open a new terminal and connect to the server, and perform the k-v operation.
    1
    redis-cli
    

  3. Terminate the connection.
    1
    exit
    
  4. Stop Redis.
    1
    redis-cli -h 127.0.0.1 -p 6379 shutdown