Linux background start redis

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

Insert picture description here

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

Insert picture description here

3. Remote access to redis for testing

Access the redis service of remote linux through the redis Desktop Manager.
Insert picture description here

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

Insert picture description here

Guess you like

Origin blog.csdn.net/u010312671/article/details/107293678