当前位置:网站首页>The daemon thread starts redis and modifies the configuration file

The daemon thread starts redis and modifies the configuration file

2022-07-06 16:55:00 LuckyShawn

Get into redis The installation directory , Then you need to copy it redis.config file . Backup is needed at this time , We are /etc/ Create a new folder
 Insert picture description here
Install well redis How to start after redis And modify the configuration file
Then copy the file here , perform cp Command to copy
The order is as follows :
cp redis.config Location Target location
 Insert picture description here

And then modify it redis.config file , Get into etc Catalog , use vi Enter what needs to be modified redis.config
Redis The default is not to run as a daemon , This configuration item can be modified , Use yes Enable daemons .
Modify the following no by yes
 Insert picture description here
Then save to exit wq!

start-up redis redis-server /etc/myredis/redis.config
 Insert picture description here
Then test whether the startup is successful
 Insert picture description here

原网站

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