站长资讯网
最全最丰富的资讯网站

Centos7 安装 Zabbix3.4教程

一、Zabbix-server安装及配置

1、安装mariadb

yum install mariadb-server mariadb -y

systemctl start mariadb

2、Zabbix3.4安装

rpm -ivh http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-1.el7.centos.noarch.rpm

yum install zabbix-server-mysql zabbix-web-mysql -y

3、创建数据库

mysqladmin -u root password 123456

mysql -u root -p

create database zabbix character set utf8 collate utf8_bin;

grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';

4、导入数据

zcat /usr/share/doc/zabbix-server-mysql-3.4.13/create.sql.gz | mysql -uzabbix -pzabbix zabbix

usermod -s /bin/bash zabbix

5、配置数据库用户及密码

vim /etc/zabbix/zabbix_server.conf

DBName=zabbix

DBUser=zabbix

DBPassword=zabbix

systemctl start zabbix-server

6、编辑Zabbix前端PHP配置,更改时区

vim /etc/httpd/conf.d/zabbix.conf

php_value date.timezone Asia/Shanghai

systemctl start httpd

7、浏览器访问 http://47.104.73.37/zabbix/,并按照提示进行安装,默认用户Admin 默认密码zabbix

8、默认是英文界面,可修改为中文界面

Centos7 安装 Zabbix3.4教程

Centos7 安装 Zabbix3.4教程

二、Zabbix-agent安装及配置

1、安装Zabbix-agent

yum install -y zabbix-agent

2、配置Zabbix-agent

vim /etc/zabbix/zabbix_agentd.conf

Server=47.104.73.37

ServerActive=47.104.73.37

Hostname=Zabbix server

Include=/etc/zabbix/zabbix_agentd.d/*.conf

3、启动Zabbix-agent

systemctl start zabbix-agent.service

赞(0)
分享到: 更多 (0)
网站地图   沪ICP备18035694号-2    沪公网安备31011702889846号