2.2 Zabbix5.0: 安装部署zabbix5.0

2.2  Zabbix5.0: 安装部署zabbix5.0

相关信息:

10.11.160.1

[root@zh-cjh ~]# cat  /etc/redhat-release

CentOS Linux release 7.4.1708 (Core)

[root@zh-cjh ~]#

[root@zh-cjh ~]#  httpd -v

Server version: Apache/2.4.6 (CentOS)

Server built:   Nov 16 2020 16:18:20

[root@zh-cjh ~]#

[root@zh-cjh ~]# mysql -V

mysql  Ver 8.0.25 for Linux on x86_64 (MySQL Community Server - GPL)

[root@zh-cjh ~]#

root@zh-cjh ~]# zabbix_server -V

zabbix_server (Zabbix) 5.0.13

Revision c218b76dad 28 June 2021, compilation time: Jun 28 2021 12:24:54

 

Copyright (C) 2021 Zabbix SIA

License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>.

This is free software: you are free to change and redistribute it according to

the license. There is NO WARRANTY, to the extent permitted by law.

 

This product includes software developed by the OpenSSL Project

for use in the OpenSSL Toolkit (http://www.openssl.org/).

 

Compiled with OpenSSL 1.0.1e-fips 11 Feb 2013

Running with OpenSSL 1.0.1e-fips 11 Feb 2013

[root@zh-cjh ~]#

 

安装参考网站:

https://www.zabbix.com/cn/download

2.2  Zabbix5.0: 安装部署zabbix5.0(图1)

Install Zabbix repository

# rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm

# yum clean all

2.2  Zabbix5.0: 安装部署zabbix5.0(图2)

 Install Zabbix server and agent

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

 

 Install Zabbix frontend

Enable Red Hat Software Collections

# yum install centos-release-scl -y

2.2  Zabbix5.0: 安装部署zabbix5.0(图3)

编辑配置文件 /etc/yum.repos.d/zabbix.repo

[zabbix-frontend]

...

enabled=1

 

Install Zabbix frontend packages

yum install zabbix-web-mysql-scl zabbix-apache-conf-scl -y

2.2  Zabbix5.0: 安装部署zabbix5.0(图4)

创建初始数据库以及导入

2.2  Zabbix5.0: 安装部署zabbix5.0(图5)

Zabbix server配置数据库

编辑配置文件 /etc/zabbix/zabbix_server.conf

DBPassword=密码

 

Zabbix前端配置PHP

编辑配置文件 /etc/opt/rh/rh-nginx116/nginx/conf.d/zabbix.conf

 listen 80;

server_name example.com;

2.2  Zabbix5.0: 安装部署zabbix5.0(图6)

编辑配置文件 /etc/opt/rh/rh-php72/php-fpm.d/zabbix.conf, add nginx to listen.acl_users directive.

vi  /etc/opt/rh/rh-php72/php-fpm.d/zabbix.conf

php_value[date.timezone] = Asia/Shanghai

2.2  Zabbix5.0: 安装部署zabbix5.0(图7)

启动Zabbix serveragent进程,并为它们设置开机自启:

# systemctl restart zabbix-server zabbix-agent httpd rh-php72-php-fpm

# systemctl enable zabbix-server zabbix-agent httpd rh-php72-php-fpm

2.2  Zabbix5.0: 安装部署zabbix5.0(图8)

http://10.11.160.1/

2.2  Zabbix5.0: 安装部署zabbix5.0(图9)

http://10.11.160.1/zabbix

2.2  Zabbix5.0: 安装部署zabbix5.0(图10)



Zabbix5(列表、list、全)zabbixlist
http://www.zh-cjh.com/wenzhangguilei/722.html
文章归类、所有文章列表、LISTLIST
http://www.zh-cjh.com/wangzhangonggao/2195.html

1、本站资源长期持续更新。
2、本资源基本为原创,部分来源其他付费资源平台或互联网收集,如有侵权请联系及时处理。
3、本站大部分文章的截图来源实验测试环境,请不要在生产环境中随意模仿,以免带来灾难性后果。

转载请保留出处:  www.zh-cjh.com珠海陈坚浩博客 » 2.2 Zabbix5.0: 安装部署zabbix5.0

作者: cjh


手机扫一扫,手机上查看此文章:

一切源于价值!

其他 模板文件不存在: ./template/plugins/comment/pc/index.htm

未雨绸缪、居安思危!

数据安全、有备无患!

注意操作、数据无价!

一切源于价值!