当前位置:网站首页>Production deployment zabbix5.0 notes
Production deployment zabbix5.0 notes
2022-07-29 03:06:00 【ELIAUK``】
0.zabbix5.0 TLS Deploy # Official website recommends yum Mode deployment
#------------------------------zabbix-server Deploy ------------------------------#
# Official address
https://www.zabbix.com/cn/downlo ... 7&db=mysql&ws=nginx
# System and kernel versions
CentOS Linux release 7.6.1810、 kernel 3.10.0-957.el7.x86_64)
# install zabbix Warehouse 、zabbix Software and databases , Modify warehouse configuration
https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm
rpm -Uvh https://repo.zabbix.com/zabbix/5 ... .0-1.el7.noarch.rpm
yum clean all && yum install -y zabbix-server-mysql zabbix-agent
yum install -y centos-release-scl
sed -i '11s/enabled=0/enabled=1/' /etc/yum.repos.d/zabbix.repo
yum install -y zabbix-web-mysql-scl
yum install -y zabbix-nginx-conf-scl
yum install -y mariadb-server# Start database
systemctl enable mariadb --now Initialize database , And set the password
mysql_secure_installation# Database script import
create database zabbix character set utf8 collate utf8_bin;
grant all privileges on zabbix.* to 'zabbix'@'localhost' identified by 'zabbix';# Import initial schema and data , You will be prompted for the newly created password
zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix# by Zabbix server Configuration database
sed -i 's/# DBPassword=/DBPassword=zabbix/' /etc/zabbix/zabbix_server.conf# by Zabbix The front-end configuration PHP # Must visit server_name, Otherwise, the report will be wrong 403.server_name fill IP that will do
# Be sure to revise it example.com Visit the domain name for yourself
sed -i 's/#\ listen\ 80;/\ listen\ 80;/' /etc/opt/rh/rh-nginx116/nginx/conf.d/zabbix.conf
sed -i 's/#\ server_name\ example.com;/\ server_name\ local.zabbix.com;/' /etc/opt/rh/rh-nginx116/nginx/conf.d/zabbix.conf
sed -i 's/listen.acl_users = apache/listen.acl_users = apache,nginx/' /etc/opt/rh/rh-php72/php-fpm.d/zabbix.conf# Modify the front page to access the real resource directory
sed -i '[email protected]\ root\ /opt/rh/rh-nginx116/root/usr/share/nginx/html;@\ root\ /usr/share/zabbix;@' /etc/opt/rh/rh-nginx116/nginx/nginx.conf
# Change time zone Asia Shanghai
sed -i '$iphp_value[date.timezone] = Asia/Shanghai' /etc/opt/rh/rh-php72/php-fpm.d/zabbix.conf
# Start the service and set the power on auto start
systemctl restart zabbix-server zabbix-agent rh-nginx116-nginx rh-php72-php-fpm
systemctl enable zabbix-server zabbix-agent rh-nginx116-ngin边栏推荐
- C和指针 第3章 语义“陷阱” 3.5 空指针并非字符串
- Redis配置缓存过期监听事件触发
- MYSQL入门与进阶(十三)
- 12_ UE4 advanced_ Change a more beautiful character model
- 照片比例校正工具:DxO ViewPoint 3 直装版
- C traps and defects Chapter 3 semantic "traps" 3.1 pointers and arrays
- Shell programming specifications and variables
- C traps and defects Chapter 3 semantic "traps" 3.8 operators &, |, and!
- JVM基础入门篇一(内存结构)
- 【C】数组
猜你喜欢

MySQL installation and configuration super detailed tutorial and simple database and table building method

万字详解 Google Play 上架应用标准包格式 AAB

13_ue4进阶_蒙太奇动画实现一边走一边攻击

第09章_性能分析工具的使用

Add a row to a specific location in the dataframe

「PHP基础知识」输出圆周率的近似值

Navicat new database

SQL查询数据之多表(关联)查询

4000 多字学懂弄通 js 中 this 指向问题,顺便手写实现 call、apply 和 bind

3D高级渲染器:Artlantis studio 2021.2中文版
随机推荐
Digital image processing Chapter 10 - image segmentation
C陷阱与缺陷 第2章 语法“陷阱” 2.6 “悬挂”else引发的问题
MySQL忘记密码怎么办
Linux下安装MySQL8.0的详细步骤
C陷阱与缺陷 第3章 语义“陷阱” 3.1 指针与数组
数字图像处理 第10章——图像分割
MYSQL入门与进阶(十二)
第2章 VRP命令行
MySql的安装配置超详细教程与简单的建库建表方法
OSPF experiment
01-sdram: Code of initialization module
Interpreting AI robots' pet raising and leading fashion trends
[freeswitch development practice] media bug obtains call voice flow
【FreeSwitch开发实践】UniMRCP编译与安装
01-SDRAM:初始化模块的代码
3D高级渲染器:Artlantis studio 2021.2中文版
C语言基础知识点汇总
百度副总裁李硕:数字技术加持下中国劳动力成本上升是好事
Shell programming specifications and variables
2022-07-28 第四小组 修身课 学习笔记(every day)