In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-12 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
The following brings you nginx Load Balancer how to deploy dual hot standby methods and steps, hoping to bring you some help in practical application, Load Balancer involves many things, theory is not much, there are many books on the Internet, today we will use the accumulated experience in the industry to do an answer.
deployment
ip allocation nginx192.168.1.5 host 192.168.1.6 standby floating ip192.168.1.7
Set floating ip first (both active and standby machines need to be set)
Open the network card eth0 and configure the network parameters
Copy eth0 to eth0:1
modified vim eth0:1
NAME = eth0:1
DEVICE = eth0:1
IPADDR = 192.168.1.7
Turn on forwarding
echo "1" > /proc/sys/net/ipv4/ip_forward
Modify the/etc/sysctl.conf file so that packet forwarding takes effect automatically at system startup:
# Controls IP packet forwarding
net.ipv4.ip_forward = 1
restart the network
service network restart
Install keepalived
yum install keepalived -y
modify the configuration file
vim /etc/keepalived/keepalived.conf
Host configuration
global_defs {
notification_email {
#baojing@163.com Set alarm
}
router_id LVS_DEVEL
}
vrrp_script chk_http_port {
script "
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.