In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
How to configure ip access specified by redis public network? I believe that most people have not yet learned this skill, in order to let you learn, to give you a summary of the following content, do not say much, let's move on.
# bind 192.168.1.100 10.0.0.1# bind 192.168.1.8# bind 127.0.0.1
After the modification is complete, the redis service needs to be restarted.
Redis-server redis.conf if iptables does not open port 6379, use this method to open the port
Command: / sbin/iptables-I INPUT-p tcp-- dport 6379-j ACCEPT save firewall modification command: / etc/rc.d/init.d/iptables save
Allow specified public network ip access through iptables
Modify Linux's firewall (iptables) to open your redis service port. The default is 6379.
/ / only allow 127.0.0.1 access to 6379iptables-An INPUT-s 127.0.0.1-p tcp-- dport 6379-j ACCEPT// other ip access all deny iptables-An INPUT-p TCP-- dport 6379-j REJECT
Before rejecting is configured
After configuration reject
Another way is to enable it through bind.
What is described above is how to configure the redis public network and specify the method for ip to access the redis service. The specific usage needs to be used by everyone in a hands-on experiment. If you want to know more about it, welcome to follow the industry information channel!
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.