---
# System prepended metadata

title: Zabbix_Installation

---

# Zabbix_Installation

Sur une machine virtuelle Red Hat Enterprise Linux 8 installée au préalable sans interface graphique et authentifier en root.

## En ligne de commande sur putty
    # ip a
    #  dnf update && dnf upgrade
    # rpm -Uvh https://repo.zabbix.com/zabbix/5.4/rhel/8/x86_64/zabbix-release-5.4-1.el8.noarch.rpm
    # dnf clean all
    # dnf install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-sql-scripts zabbix-agent
    # dnf install mysql-server
    # systemctl start mysqld.service
    # mysql_secure_installation
    # mysql -u root -p
        * P@ssw0rd
        * mysql> create database zabbix character set utf8 collate utf8_bin;
        * mysql> create user zabbix@localhost identified by 'P@ssw0rd';
        * mysql> grant all privileges on zabbix.* to zabbix@localhost;
        * mysql> quit;
    # zcat /usr/share/doc/zabbix-sql-scripts/mysql/create.sql.gz | mysql -uzabbix -p zabbix
    # nano /etc/zabbix/zabbix_server.conf
        * DBPassword=P@ssw0rd
    # setsebool -P httpd_unified 1
    # setsebool -P httpd_can_network_connect 1
    # setsebool -P httpd_graceful_shutdown 1
    # setsebool -P httpd_can_network_relay 1
    # setsebool -P nis_enabled 1
    # setsebool -P httpd_can_network_connect_db 1
    # setsebool -P httpd_can_sendmail on
    # systemctl enable --now mysqld.service
    # systemctl enable --now httpd
    # systemctl enable zabbix-server zabbix-agent httpd php-fpm
    # firewall-cmd --add-port={80,443}/tcp --permanent
    # firewall-cmd --reload

## On se connecte sur un navigateur internet 

http://IP/zabbix
![](https://i.imgur.com/joSiFO8.png)
![](https://i.imgur.com/uma8wPT.png)
![](https://i.imgur.com/ZFoHII2.png)
![](https://i.imgur.com/VkpkOGF.png)
![](https://i.imgur.com/A0GKVbe.png)
![](https://i.imgur.com/dco0ZKi.png)
![](https://i.imgur.com/2oXn2oO.png)
![](https://i.imgur.com/grV1TGK.png)
![](https://i.imgur.com/gSPPuYv.png)








