zabbix基本配置操做:php
1) rpm -ivh http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-1.el7.noarch.rpm
2) yum install zabbix-server-mysql zabbix-web-mysql (若是裝agent:yum install zabbix-agent)
3) 而後導入初始架構(Schema)和數據: cd /usr/share/doc/zabbix-server-mysql-3.4.0(或對應版本)
再:zcat create.sql.gz | mysql -uroot zabbix
4) 配置zabbix_server.confmysql
# vi /etc/zabbix/zabbix_server.conf DBHost=localhost DBName=zabbix DBUser=zabbix DBPassword=zabbix
5) vi /etc/httpd/conf.d/zabbix.conf 添加修改: php_value date.timezone Asia/Shanghai linux
6) 安裝並配置數據庫:數據庫建立腳本 web
7) systemctl start zabbix-server ~~||~~ systemctl start httpd (啓動報錯運行:setenforce 0 關閉SELinux的防火牆 )sql
其餘相關:數據庫
zabbix 啓動報錯:參考連接1