1. Start redis in the background
Enter the redis directory in linux,
cd /usr/local/cjrh/redis-4.0.2/src
./redis-server /usr/local/cjrh/redis-4.0.2/redis.conf
2. Linux local access
Also in the src directory, access the redis service through the redis-cli client:
cd /usr/local/cjrh/redis-4.0.2/src
./redis-cli
3. Remote access to redis for testing
Access the redis service of remote linux through the redis Desktop Manager.
4. Redis is closed
In the src directory of redis, close by accessing redis-cli
cd /usr/local/cjrh/redis-4.0.2/src
./redis-cli
127.0.0.1:6379> shutdown
not connected> quit