In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article is about how to install and configure Bloom filters in Redis. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
I. version requirements
Version 6.x is recommended, and the minimum version is 4.x. You can view the version by using the following command:
Redis-server-v
Plug-in installation, most of the online recommended v1.1.1, the article is written when v2.2.6 is already the release version, users choose, the address is all below (2.2.6 official website is described as the maintenance version of version 1.0, if you do not want to use new features, no need to upgrade!
V1.1.1
Https://github.com/RedisLabsModules/rebloom/archive/v1.1.1.tar.gz
V2.2.6
Https://github.com/RedisLabsModules/rebloom/archive/v2.2.6.tar.gz
II. Installation & compilation
The following installation is all completed in the specified directory, you can choose a suitable unified directory for software installation and management.
2.1 download plug-in package wget https://github.com/RedisLabsModules/rebloom/archive/v2.2.6.tar.gz2.2 extract tar-zxvf v2.2.6.tar.gz2.3 compilation plug-in cd RedisBloom-2.2.6/make
After compiling successfully, you can see the redisbloom.so file.
III. Redis Integration 3.1 Redis configuration file modification
Add the address of the redisbloom.so file such as RedisBloom to the redis.conf configuration file
If it is a cluster, the address of the redisbloom.so file needs to be added to each configuration file.
You need to restart redis after adding.
Loadmodule / usr/local/soft/RedisBloom-2.2.6/redisbloom.so
The configuration items of loadmodule are preset in the redis.conf configuration file, which can be modified directly here, and it will be more convenient to modify them later. \
Be sure to restart Redis after saving and exiting!
Be sure to restart Redis after saving and exiting!
Be sure to restart Redis after saving and exiting!
3.2 whether the test was successful
The main instructions for the Redis integrated Bloom filter are as follows:
Bf.add add an element
Bf.exists determines whether an element exists or not
Bf.madd adds multiple elements
Bf.mexists determines whether multiple elements exist or not
Connect the client to test, and if the instruction is valid, it proves that the integration is successful.
If the following situation occurs (error) ERR unknown command, you can check it by the following methods:
SHUTDOWN Redis instance, restart the instance, and test again
Check that the configuration file is configured with the correct redisbloom.so file address
Check whether the version of Redis is too low
Thank you for reading! This is the end of the article on "how to install and configure the Bloom filter in Redis". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
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.