In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
When using the redis connection pool, you need to do some redis-related configuration, and the redis.properties file is established by the programmer himself under the project classpath path (such as eclipse's src) and is not obtained from the redis installation package.
Establishment of 1.redis.properties file
Find the appropriate project in eclipse, select File-- > New-- > File, select the src directory in the project, fill in the file name redis.properties, and then Finish will be fine.
Configuration and description of 2.redis.properties file
Redis.timeout=3000 # timeout: unit msredis.password=123456 # authorization password redis.pool.maxActive=200 # maximum number of connections: maximum number of links that can be established at the same time redis.pool.maxIdle=20 # maximum number of free links: when the number of free links is greater than maxIdle, redis.pool.minIdle=5 # minimum free number: when it is lower than minIdle, new links redis.pool.maxWait=3000 # maximum waiting time will be created: unit msredis.pool.testOnBorrow=true # when using connections Check whether the connection is successful or not when redis.pool.testOnReturn=true # returns the connection, check whether the connection is successful
The above redis.properties file based on the configuration and description of the introduction is the editor to share with you all the content, I hope to give you a reference, but also hope that you support more.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.