Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Keepalived to achieve High availability of nginx

2025-03-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Keepalived literal translation means to stay alive, and to keep online in the network, that is, the so-called high availability or hot backup, to prevent a single point of failure (a single point of failure means that the failure of a certain point will lead to the unavailability of the entire system architecture). The basis of keepalived implementation is vrrp. As for what vrrp is, please see vrrp here, and let's look at the application directly.

Keepalived usage

For ease of use, an one-click configuration script based on ubuntu 16.04server is written. See the script for configuration usage.

#! / bin/bash# nginx+keepalived highly available one-click script for ubuntu 16.04if [$#-ne 4]; then echo "USAGE: $0 [MASTER | BACKUP] priority interface virtual_ipaddress" exit 0fiecho-e 'Installing nginx'apt-get install nginx-y > / dev/null 2 / dev/null 2 / etc/keepalived/keepalived.conf

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report