Linux serverNETWORK ADMINISTRATIONS

Install and config Zabbix on CentOS 8

yum –y install httpd
systemctl start httpd
systemctl enable httpd
dnf -y install php
vi /etc/php.ini
setenforce 0 && sed -i ‘s/^SELINUX=.*/SELINUX=permissive/g’ /etc/selinux/config
rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/8/x86_64/zabbix-release-5.0-1.el8.noarch.rpm
dnf clean all
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 -uroot -p’Anhits’ -e “create database zabbix character set utf8 collate utf8_bin;”
mysql -uroot -p’Anhits’ -e “grant all privileges on zabbix.* to zabbix@localhost identified by ‘Anhits’;”
mysql -uroot -p’Anhits’ zabbix -e “set global innodb_strict_mode=’OFF’;”
zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p’Anhits’ zabbix
mysql -uroot -p’Anhits’ zabbix -e “set global innodb_strict_mode=’ON’;”
systemctl restart zabbix-server zabbix-agent
systemctl enable zabbix-server zabbix-agent
firewall-cmd –add-service={http,https} –permanent
firewall-cmd –add-port={10051/tcp,10050/tcp} –permanent
firewall-cmd –reload
vi /etc/php-fpm.d/zabbix.conf
systemctl restart httpd php-fpm
systemctl enable httpd php-fpm

(password: Anhits )

#CensOS
#Linux
#Zabbix

source

centos 8

Leave a Reply

Your email address will not be published. Required fields are marked *