In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
.vip failed to take effect
Example: maybe it's the configuration habit. Some people don't make mistakes all their lives here, while others are different.
I mainly didn't pay much attention to the difference between 0.0.0.0 and 192.168.0.1. I know that the former represents
Socket snooping is generated on port 80 of all interfaces on the machine, and the latter only produces the 192.168.0.1 80 socket. Please note my description.
The former is an interface and the latter does not specify an interface. If I have eth0 eth0:1, then the former will generate two sockets (what is a socket? Ip: Port-> socket)
The latter will only generate 192.168.0.1 IP 80 this socket is not aimed at which interface (as long as the local network card interface has the 192.168.0.1 this socket). This is the background of this problem.
Once when I was doing the HA of haproxy, it was all configured, but it didn't work, but telnet vip 80 didn't produce a result, which means there was no socket, ah, no listening on port 80.
After looking for it for a long time, I finally re-looked at the configuration file of haproxy and found that my fronted was written like this. Bind 192.168.0.222 bind 80 see here you should understand?
The problem is that if I write this, there is no socket when the vip is bound to the eth0 port. If this is changed to 0.0.0.0, vip:80 and 192.168.0.222 will be generated.
Two sockets. The 0. 0. 0. 0. 0. 0 IP 80 will generate sockets for all Nic interfaces. This is the key to solving the problem. Until this problem is solved.
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.