https://www.zabbix.com/documentation/3.4/manual/installation/install_from_packages/rhel_centos
su
#cat /etc/redhat-release
RHEL 7:
#rpm -ivh https://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm
Zabbix前端需要基本安装中不提供的其他软件包。您需要在将运行Zabbix前端的系统中启用可选rpm的存储库
RHEL 7:
#yum-config-manager --enable rhel-7-server-optional-rpms
执行即可
To install Zabbix server (available for RHEL 7, deprecated on RHEL 6) with MySQL support:
#yum install zabbix-server-mysql
To install Zabbix proxy with MySQL support:
#yum install zabbix-proxy-mysql
To install Zabbix frontend (available for RHEL 7, deprecated on RHEL 6) with MySQL support:
#yum install zabbix-web-mysql
create database zabbix; —创建数据库zabbix
grant all privileges on zabbix.*to [email protected] identified by ‘123’; —给用户赋权限
flush privileges; —刷新
exit —退出mysql
#zcat /usr/share/doc/zabbix-server-mysql-版本号/create.sql.gz | mysql -u 用户名 -p 数据库名
#zcat /usr/share/doc/zabbix-server-mysql-3.4.15/create.sql.gz | mysql -u wyt -p zabbix
#service zabbix-server start
#vi /etc/httpd/conf.d/zabbix.conf