- #################1.安装zabbix
yum install -y zabbix-server-mysql-4.0.5-1.el7.x86_64.rpm zabbix-web-mysql-4.0.5-1.el7.noarch.rpm zabbix-web-4.0.5-1.el7.noarch.rpm zabbix-agent-4.0.5-1.el7.x86_64.rpm php-bcmath-5.4.16-42.el7.x86_64.rpm php-mbstring-5.4.16-42.el7.x86_64.rpm fping-3.10-1.el7.x86_64.rpm iksemel-1.4-2.el7.centos.x86_64.rpm
安装数据库和http
yum install httpd mariadb-server -y
开启数据库,改密码
systemctl start mariadb
mysql_secure_installation
创建一个库,授权后导入数据
mysql -pwestos
create database zabbix character set utf8 collate utf8_bin;
grant all privileges on zabbix.* to zabbix@localhost identified by 'westos';
zcat /usr/share/doc/zabbix-server-mysql-4.0.5/create.sql.gz