当前位置:网站首页>zibbix安装部署
zibbix安装部署
2022-07-27 18:56:00 【weijiajia123456】
一.RPM包安装
1.服务器准备
a.环境
Linux CentOS7.9 zibbix5.0
2.获取zabbix官⽅源
rpm -Uvh https://mirrors.aliyun.com/zabbix/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm
替换阿里源
sed -i 's#http://repo.zabbix.com#https://mirrors.aliyun.com/zabbix#' /etc/yum.repos.d/zabbix.repo
chmod +x /etc/yum.repos.d/zabbix.repo
yum clean all
vim /etc/yum.repos.d/zabbix.repo #将zabbix-frontend中的enabled改为1

3.安装zabbix server和agent
yum install zabbix-server-mysql zabbix-agent -y
安装 Software Collections
便于后续安装⾼版本的 php,默认 yum
yum install centos-release-scl -y
4.安装zabbix前端环境
yum install zabbix-web-mysql-scl zabbix-apache-conf-scl -y
5.安装zabbix所需的数据库(mariadb)
yum install mariadb-server -y
a.启动数据库并配置
systemctl enable --now mariadb
#配置数据库
#这里编码设置很重要
mysql -e "create database zabbix character set utf8 collate utf8_bin;"
#这里用户为 zabbix 密码也是zabbix
mysql -e "create user 'zabbix'@'localhost' identified by 'zabbix';"
mysql -e "grant all privileges on zabbix.* to 'zabbix'@'localhost';"
b.导入数据
zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix
mysql -uzabbix -pzabbix zabbix -e "show tables;"

c.修改 zabbix server 数据库配置⽂件
vim /etc/zabbix/zabbix_server.conf

查看以DB开头的数据库信息
grep '^DB' /etc/zabbix/zabbix_server.conf

6.配置php时区
vim /etc/opt/rh/rh-php72/php-fpm.d/zabbix.conf
php_value[date.timezone] = Asia/Shanghai

7.启动相关服务
systemctl restart zabbix-server zabbix-agent httpd rh-php72-php-fpm
systemctl enable zabbix-server zabbix-agent httpd rh-php72-php-fpm

8.访问zabbix⼊⼝
以上安装无误后默认访问地址为 IP地址/zabbix/index.php 自动跳转


后面全是默认,登录Username: Admin Password: zabbix

边栏推荐
- Remember that resttemplate.getforentity failed to carry headers once, resttemplate exchange
- Using pseudo element before to realize equal scaling of elements
- puzzle(002)内固、外固、哈密顿
- "Geography language" large model Wenxin Ernie geol and its application
- Good driving, inexpensive, comfortable and safe! Experience BYD song Pro DM-I in depth
- 自定义recycleView的删除&移动的动画
- How to speed up the memory database through special data type index
- Understand the communication mode of transmission media
- 说明书丨Worthington逆转录酶、重组 HIV 检测方案
- Guava Cache 原理分析与最佳实践
猜你喜欢

多人协作开发规范

图解 SQL,这也太形象了吧!

Can single mode and multi-mode of industrial switches replace each other?

力扣 919. 完全二叉树插入器

ECCV 2022 | 中科大&京东提出:数据高效的Transformer目标检测器
![论文赏析[AAAI18]面向序列建模的元多任务学习](/img/2b/345b5a287fcd9c9b1a86ae683f124b.png)
论文赏析[AAAI18]面向序列建模的元多任务学习

Comprehensively design an oppe homepage -- Design of selected accessories on the page

Uncaught SyntaxError: redeclaration of let page

A new technical director asked me to do an IP territorial function~

Win11 user name and password backup method
随机推荐
MobileVIT学习笔记
Win11 widget prompts how to solve the error when loading this content?
Mysql 数据恢复流程 基于binlog redolog undolog
Rust变量特点
常见ArrayLIst面试题
What are the product performances of industrial Ethernet switches?
mysql 最大建议行数2000w,靠谱吗?
Zhongdi Digital: integrating innovative domestic GIS to boost the construction of real 3D China
新来CTO 强烈禁止使用Calendar...,那用啥?
Paper appreciation [emnlp18] dynamic oracles for top-down and middle order move in reduction component parsing
论文赏析[EMNLP18]针对自顶向下和中序移进归约成分句法分析的Dynamic Oracles
Good driving, inexpensive, comfortable and safe! Experience BYD song Pro DM-I in depth
Can China make a breakthrough in the future development of the meta universe and occupy the highland?
MAPGIS 3D scene rendering technology and Application
Troubleshooting and resolution of program operation problems: an instance of 'std:: Logic_ error‘what(): basic_ string::_ M_ construct null not valid
[R language] [1] beginners learn the grammar of R language and edit it with rstudio
【华为HCIE安全考什么科目?华为HCIE安全考什么知识点?】
R language uses LM function to build multiple linear regression model, writes regression equation according to model coefficient, and uses deviance function to calculate the sum of squares of residual
Understand the communication mode of transmission media
Command line PDF Converter::: fcoder 2PDF