zabbix 官方文档地址:https://www.zabbix.com/documentation/3.2/manual/installation/install_from_packages
zabbix Repository installation:
1.rpm -ivh http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm
2.依次安装 server with MySQL、 agent、 proxy
2.1.Server installation with MySQL database
2.1.1.yum install zabbix-server-mysql zabbix-web-mysql
2.1.2.Creating initial database:
shell> mysql -uroot -p<root_password>
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql>flush privileges;
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by '<password>';
注意:zabbix.*是授权zabbix数据库,授权所有数据库:*.*;
zabbix@localhost:zabbix用户名,localhost:本地机器;'%':远程机器,远程机器访问要授权;
zabbix Repository installation:
1.rpm -ivh http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm
2.依次安装 server with MySQL、 agent、 proxy
2.1.Server installation with MySQL database
2.1.1.yum install zabbix-server-mysql zabbix-web-mysql
2.1.2.Creating initial database:
shell> mysql -uroot -p<root_password>
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql>flush privileges;
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by '<password>';
注意:zabbix.*是授权zabbix数据库,授权所有数据库:*.*;
zabbix@localhost:zabbix用户名,localhost:本地机器;'%':远程机器,远程机器访问要授权;