Birmingham mumbai



Download 15,21 Mb.
Pdf ko'rish
bet479/482
Sana13.01.2022
Hajmi15,21 Mb.
#355107
1   ...   474   475   476   477   478   479   480   481   482
Bog'liq
Mastering Ubuntu Server Gain expertise in the art of deploying, configuring, managing, and troubleshooting Ubuntu Server by Jay LaCroix (z-lib.org)

[
 372 
]
Next, we'll need to install 
keepalived
. Simply run the following command on both of 
your servers:
sudo apt install keepalived 
If you check the status of the 
keepalived
 daemon, you'll see that it attempted to start 
as soon as it was installed, and then immediately failed. If you check the status of 
keepalived
 with the 
systemctl
 command, you'll see an error similar to the following:
Condition: start condition failed 
Since we haven't actually configured 
keepalived
, it's fine for it to have failed. After 
all, we haven't given it anything to check, nor have we assigned our floating IP. 
By default, there is no sample configuration file created once you've installed the 
package; we'll have to create that on our own. Configuration for 
keepalived
 is stored 
in 
/etc/keepalived
, which at this point should just be an empty directory on your 
system. If, for some reason, this directory doesn't exist, create it:
sudo mkdir /etc/keepalived
Let's open a text editor on our primary server and edit the 
/etc/keepalived/
keepalived.conf
 file, which should be empty. Insert the following code into the file. 
There
 are some changes you'll need to make in order for this configuration to work 
in your environment. As we continue, I'll explain what the code is doing and what 
you'll need to change. Keep your text editor open after you paste the code, and keep 
reading for some tips on how to ensure that this 
config
 file will work for you:
global_defs { 
    notification_email { 
    myemail@mycompany.com 
    } 
    notification_email_from keepalived@mycompany.com 
    smtp_server 192.168.1.150 
    smtp_connect_timeout 30 
    router_id mycompany_web_prod 

vrrp_instance VI_1 { 
    smtp_alert 
    interface enp0s3 
    virtual_router_id 51 
    priority 100 
     advert_int 5 
    virtual_ipaddress { 
    192.168.1.200 
    } 



Chapter 14

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   474   475   476   477   478   479   480   481   482




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish