Bog'liq Mastering Ubuntu Server Gain expertise in the art of deploying, configuring, managing, and troubleshooting Ubuntu Server by Jay LaCroix (z-lib.org)
[ 375 ] If all went well on the first server, we should set up
keepalived
on the second web
server. Install the
keepalived
package on the other server if you haven't already done
so, and then copy the
keepalived.conf
file from your working server to your new
one. Here are some things to keep in mind regarding the second server's
keepalived.
conf
file:
• Be sure to change the priority on the secondary server to a lower number
than what you used on the primary server
• The
virtual_ipaddress
value should be the same on both
• The
virtual_router_id
value should be the same on both
• Start or restart
keepalived
on your secondary server, and verify there were
no errors when the service started up
Now, let's have some fun and see
keepalived
in action. What follows is an extremely
simple HTML file: