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 > Servers >
Share
Shulou(Shulou.com)06/01 Report--
How to understand bind_ip, in view of this problem, this article introduces the corresponding analysis and answers in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible way.
Various configuration files often see the settings of bind_ip for more security.
1. Bind locally
[root@host-192-168156 ~] # netstat-nputl | grep-I redis
Tcp 0 0 127.0.0.1 6379 0.0.0.0 * LISTEN 12864/redis-server
Log in from another machine:
[root@hostnfsd: / root] $redis-cli-p 6379-h 192.168.1.56-the private network cannot log in
Could not connect to Redis at 192.168.1.56:6379: Connection refused
Not connected >
[root@hostnfsd: / root] $redis-cli-p 6379-h 125.208.12.56-Public network cannot log in
Could not connect to Redis at 125.208.12.56:6379: Connection refused
Not connected >
two。 Bind private network
[root@host-192-168156 ~] # netstat-nputl | grep-I redis
Tcp 0 192.168.1.56 6379 0.0.0.0 * LISTEN 13754/redis-server
[root@hostnfsd: / root] $redis-cli-p 6379-h 192.168.1.56-only the private network can log in
Redis 192.168.1.56 6379 >
[root@hostnfsd: / root] $redis-cli-p 6379-h 125.208.12.56
Could not connect to Redis at 125.208.12.56:6379: Connection refused
Not connected >
3. Bind to public network
[root@host-192-168156 ~] # netstat-nputl | grep-I redis
Tcp 0 0 125.208.12.56 6379 0.0.0.0 * LISTEN 13966/redis-server
[root@hostnfsd: / root] $redis-cli-p 6379-h 192.168.1.56
Could not connect to Redis at 192.168.1.56:6379: Connection refused
Not connected >
[root@hostnfsd: / root] $redis-cli-p 6379-h 125.208.12.56-only the external network can log in
Redis 125.208.12.56 6379 >
The answer to the question on how to understand bind_ip is shared here. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.
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.