当前位置:网站首页>Redis server configuration

Redis server configuration

2022-06-13 02:56:00 Knowing and knowing

1. Server settings

  • Set the server to run as a daemons

daemonize yes | no

  • Bind host address

bind127.0.0.1

  • Set the server port number

port 6379

  • Set the number of databases

databases 16

2. Log configuration

  • Set up the server to specify the logging level

loglevel debug | verbose | notice | warning

  • Log file name

logfi1e Port number .1og

Be careful : The log level development period is set to verbosel that will do , In the production environment, the configuration is notice, Simplify log output , Reduce write log O The frequency of

3. Client configuration

  • Sets the maximum number of client connections at one time , Default limit . When the client connection reaches the upper limit ,Rdis Will close the new connection .

maxclients 0

  • The maximum waiting time of idle client , Close the connection when the maximum value is reached . To turn off the function , Set to 0.

timeout 300

4. Multi server quick configuration

● Import and load the specified profile information , Used to quickly create redis There are more public facilities redis, Instance configuration file , Easy to maintain .

include /path/server- Port number .conf

原网站

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