1.安装服务器端包
1 2 3 4 |
#rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm
|
2.启动mariadb
1 2 |
#systemctl start mariadb-server
|
3.创建zabbix数据库
1 2 3 4 5 6 7 |
#cd /usr/share/doc/zabbix-server-mysql-3.0.3/
|
4.修改zabbix配置文件
1 2 3 4 5 6 7 |
#vim /etc/zabbix/zabbix_server.conf
|
5.关闭Selinux和火墙,当然你配通也可以
1 2 |
#setenforce 0
|
6.修改http配置文件
1 2 3 4 5 6 7 8 9 10 |
#vim /etc/httpd/conf.d/zabbix.conf
|
7.Zabbix frontend is available at http://zabbix-frontend-hostname/zabbix in the browser. (Default username/password is Admin/zabbix).
前端页面php配置位置:/etc/zabbix/web/zabbix.conf.php
安装过程中遇见的问题
[[email protected] ~]# systemctl start zabbix-server
Job for zabbix-server.service failed. See ‘systemctl status zabbix-server.service‘ and ‘journalctl -xn‘ for details.
先检查selinux是否关闭,关闭后,并安装以下两个软件。再次启动zabbix-server服务便可以启动成功。
[[email protected] ~]# yum install trousers gnutls -y
8.安装和配置客户端
1 2 3 4 5 6 |
#rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm
|