第一步:官方的源:
rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/7/x86_64/zabbix-release-2.4-1.el7.noarch.rpm
第二步:zabbix的server端安装
yum install -y zabbix zabbix-get zabbix-server zabbix-web-mysql zabbix-web zabbix-agent
第三步:配置zabbix专用数据库
1、create database zabbix #建库
2、grant all on zabbix.* to [email protected]‘%‘ identified by ‘zabbix‘#加用户
3、mysql -uroot -prootpassword zabbix < /usr/share/doc/zabbix-server-mysql-2.4.5/create/schema.sql
4、mysql -uroot -prootpassword zabbix < /usr/share/doc/zabbix-server-mysql-2.4.5/create/image.sql
5、mysql -uroot -prootpassword zabbix < /usr/share/doc/zabbix-server-mysql-2.4.5/create/data.sql
6、注意如安装zabbix-proxy的话只导入schema.sql就可以了;否则zabbix就用不了。
第四步:配置zabbix_server_conf
vim /etc/zabbix/zabbix_server.conf
默认只要配置 DBPassword就可以了。
第五步:启动zabbix
service zabbix-server start
service httpd start