下载安装Zabbix4.0 LTS

官网

https://www.zabbix.com

服务器版本

[root@localhost vhosts]# cat /etc/redhat-release 
CentOS Linux release 7.4.1708 (Core) 
[root@localhost vhosts]# php -v
PHP 5.4.16 (cli) (built: Mar  7 2018 13:34:47) 
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
[root@localhost vhosts]# mysql -V
mysql  Ver 15.1 Distrib 5.5.56-MariaDB, for Linux (x86_64) using readline 5.1

下载安装

选择您Zabbix服务器的平台

下载

rpm -Uvh https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm
yum clean all

安装

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

初始数据库

# mysql -uroot -p
password
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'password';
mysql> quit;

导入初始架构和数据

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

配置

数据库:编辑配置文件 /etc/zabbix/zabbix_server.conf,设置密码

DBPassword=password

前端:编辑配置文件 /etc/httpd/conf.d/zabbix.conf,设置时区

php_value date.timezone Asia/Shanghai

启动

启动服务,并增加开机启动

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

WEB端设置

连接到新安装的Zabbix前端: http://server_ip_or_name/zabbix

Welcome

Check of pre-requisites

Configure DB connection

Zabbix server details

Pre-installation summary

Install

Login

zabbix8.png

注:默认账号:Admin 密码:zabbix

控制台

zabbix9.png

中文切换


本文链接:https://jeff.xin/post/110.html

--EOF--

Comments

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。