当前位置:网站首页>Liunx starts redis

Liunx starts redis

2022-07-05 06:07:00 A light wind and light clouds

1、 Get into redis The installation directory , Execute the following command to start redis service

./bin/redis-server redis.conf  # Opening service

2、 adopt redis-cli test redis Is it available , stay redis Execute the following command from the installation directory :

./bin/redis-cli

  Be careful :

This startup mode cannot exit the console , If you exit , that redis Services will also stop . If you want to redis Operation in background mode , Need modification redis Configuration file for :redis.conf. The... In this configuration file daemonize no Change it to daemonize yes that will do :

Common mistakes :

Could not connect to Redis at 127.0.0.1:6379: Connection refused

原网站

版权声明
本文为[A light wind and light clouds]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/186/202207050600068712.html