Redis service startup and shutdown

step

1. If you want to see the redis process, first modify the redis.conf configuration file and
change no to yes.
Insert picture description here
2. Go to the /usr/local/bin directory and start the redis service through the redis.conf configuration file

redis-server redis configuration file location

Insert picture description here
3. Test whether the redis service is started successfully.
6379 is the default port of redis

redis-cli -p port number (the default is 6379)

Insert picture description here

4. Close redis

shutdown

Insert picture description here

Guess you like

Origin blog.csdn.net/magicproblem/article/details/111647619