centos 7 上zabbix 3.0 服务端安装

zabbix服务端安装

安装完毕mysql-5.6PHP5.6

mysql-5.6安装:https://www.cnblogs.com/xzlive/p/9771642.html

 创建zabbix 用户

# groupadd zabbix
# useradd -g zabbix zabbix

1.1 下载安装zabbix
所有版本下载地址:http://www.zabbix.com/download.PHP

# yum install net-snmp-devel libxml2-devel libcurl-devel // 一定先安装依赖
# cd /usr/local/src
# rpm -i https://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm
# wget http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-server-MysqL-3.0.9-1.el7.x86_64.rpm
# wget http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-agent-3.0.9-1.el7.x86_64.rpm
# wget  http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-web-MysqL-3.0.9-1.el7.noarch.rpm
# wget  http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-web-3.0.9-1.el7.noarch.rpm

1.2 安装Zabbix server,frontend,agent

#yum install zabbix-web-MysqL-3.0.9-1.el7.noarch.rpm zabbix-web-3.0.9-1.el7.noarch.rpm
#yum install zabbix-server-MysqL-3.0.9-1.el7.x86_64.rpm zabbix-agent-3.0.9-1.el7.x86_64.rpm 

1.3 创建数据库

# MysqL -uroot -p
password
MysqL> create database zabbix character set utf8 collate utf8_bin;
MysqL> grant all privileges on zabbix.* to [email protected] identified by ‘password‘;
MysqL> quit;

1.4 导入数据库数据

# zcat /usr/share/doc/zabbix-server-MysqL*/create.sql.gz | MysqL -uzabbix -p zabbix

1.5 配置zabbix server的配置文件

#vi /etc/zabbix/zabbix_server.conf
DBPassword=password

1.6 配置PHP和zabbix frontend

#vi /etc/httpd/conf.d/zabbix.conf
#PHP_value timezone Asia/Shanghai
#vi /etc/PHP.ini
#date.timezone = Asia/Shanghai

1.7 启动服务并设置开机自动启动

# systemctl restart zabbix-server zabbix-agent httpd
# systemctl enable zabbix-server zabbix-agent httpd

相关文章

Centos下搭建性能监控Spotlight
CentOS 6.3下Strongswan搭建IPSec VPN
在CentOS6.5上安装Skype与QQ
阿里云基于centos6.5主机VPN配置
CentOS 6.3下配置multipah
CentOS安装、配置APR和tomcat-native