Instalacja Zabbix w mniej niż 15 minut? Tak to możliwe. Dziś Centos 8, ale na tym nie koniec. Użyte polecenia w nagraniu:
|
setenforce 0 && sed -i 's/^SELINUX=.*/SELINUX=permissive/g' /etc/selinux/config |
dla wersji 5.0LTS
|
rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/8/x86_64/zabbix-release-5.0-1.el8.noarch.rpm |
dla wersji 5.2
|
rpm -Uvh https://repo.zabbix.com/zabbix/5.2/rhel/8/x86_64/zabbix-release-5.2-1.el8.noarch.rpm |
|
dnf -y install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-agent |
|
dnf -y install mariadb-server && systemctl start mariadb && systemctl enable mariadb |
|
mysql_secure_installation |
|
mysql -u root -p'ZabbixPass' -e "create database zabbix character set utf8 collate utf8_bin;" |
|
mysql -uroot -p'ZabbixPass' -e "grant all privileges on zabbix.* to zabbix@localhost identified by 'ZabbixPass';" |
|
mysql -uroot -p'ZabbixPass' zabbix -e "set global innodb_strict_mode='OFF';" |
|
zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p'ZabbixPass' zabbix |
|
mysql -uroot -p'ZabbixPass' zabbix -e "set global innodb_strict_mode='ON';" |
|
nano /etc/zabbix/zabbix_server.conf<br>DBPassword=ZabbixPass |
|
systemctl restart zabbix-server zabbix-agent<br>systemctl enable zabbix-server zabbix-agent |
|
firewall-cmd --add-service={http,https} --permanent<br>firewall-cmd --add-port={10051/tcp,10050/tcp} --permanent<br>firewall-cmd --reload |
|
nano /etc/php-fpm.d/zabbix.conf |
|
php_value date.timezone Europe/Warsaw |
|
systemctl restart httpd php-fpm<br>systemctl enable httpd php-fpm |
Przejście do przeglądarki na adres serwera zabbix: http://xxx.xxx.xxx.xxx/zabbix