Practica 3: Cluster de Alta Disponibilidad HTTP con KeepAlived

Sdílet
Vložit
  • čas přidán 29. 06. 2024
  • Practica 3: Cluster de Alta Disponibilidad HTTP
    Implementar HA en Web Server Apache y ver si funciona la Alta Disponibilidad del servicio apagando uno de los servidores y accediendo al servicio de apache a través de un navegador.
    ======================KALI LINUX======================
    Alexner Asael Aquino Heredia
    2023-1515
    Instituto Tecnológico de Las Américas
    Sistema Operativo 3
    Adrián Alcántara

Komentáře • 1

  • @alexneraquinoheredia3588

    sudo nano /var/www/html/hola.mundo.html

    Informacion

    Informacion mia :D
    Nombre: Asael
    Nombre: Asael
    Nombre: Asael
    SERVIDOR 1: Asael
    sudo nano /etc/keepalived/keepalived.conf
    vrrp_script chk_httpd {
    script "killall -0 apache2"
    interval 2
    weight 2
    }
    vrrp_instance VI_1 {
    state MASTER
    interface eth0
    virtual_router_id 51
    priority 101
    advert_int 1
    authentication {
    auth_type PASS
    auth_pass secret

    }
    virtual_ipaddress {
    10.0.0.99/24
    }
    track_script {
    chk_httpd
    }
    }
    *****SERVIDOR 2*****
    vrrp_script chk_httpd {
    script "killall -0 apache2"
    interval 2
    weight 2
    }
    vrrp_instance VI_1 {
    state respaldo
    interface eth0
    virtual_router_id 51
    priority 95
    advert_int 1
    authentication {
    auth_type PASS
    auth_pass secret

    }
    virtual_ipaddress {
    10.0.0.99/24
    }
    track_script {
    chk_httpd
    }
    }
    sudo systemctl start keepalived
    sudo systemctl enable keepalived
    sudo systemctl status keepalived
    sudo systemctl start apache2
    sudo systemctl enable apache2
    ip a show eth0