当前位置:网站首页>Redis standalone startup

Redis standalone startup

2022-07-06 16:46:00 Daily enlightenment

(1) Copy /usr/local/tmp/redis-5.0.5/ in redis.conf The configuration file

# cd /usr/local/tmp/redis-5.0.5/

# cp redis.conf /usr/local/redis/bin/

(2) Modify the configuration file

# cd /usr/local/redis/bin/

# vim redis.conf

hold daemonize The value of is determined by no It is amended as follows yes

The modification effect is as follows :

stay redis5 Configuration file needs to be modified in redis.conf Allow external access , Two changes are needed .

​ Comment out the following

bind 127.0.0.1  

  The modification effect is as follows :

protected-mode yes Change to no  

(3) start-up redis

# ./redis-server redis.conf  

(4) restart redis

# ./redis-cli shutdown

​# ./redis-server redis.conf  

(5) Start the client tools

stay redis5 The client tool in provides functions for commands

#./redis-cli  

原网站

版权声明
本文为[Daily enlightenment]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202131314161212.html