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