当前位置:网站首页>Common redis commands in Linux system

Common redis commands in Linux system

2022-06-25 00:03:00 Find the root of happiness

One 、 lookup redis directory

whereis redis

Two 、 start-up redis The service method

adopt cd Command to enter first redis directory , Get into bin Folder ( my redis-server The directory where the program is located is :/usr/local/redis/bin/), Then enter the following command directly :

redis-server


Two 、 close redis Method

Directly execute the following command :

redis-cli -h 127.0.0.1 -p 6379 shutdown

3、 ... and 、 restart redis service

Method : Shut down first , Restart again

原网站

版权声明
本文为[Find the root of happiness]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/175/202206241922174866.html