当前位置:网站首页>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边栏推荐
猜你喜欢

01-sdram: Code of initialization module

MySQL compound query (important)

Chapter 09_ Use of performance analysis tools

Confusion matrix learning notes

Notes on the seventh day

Jinshan cloud returns to Hong Kong for listing: Hong Kong stock rush of Chinese to B cloud manufacturers

Analyzing the subjective consciousness of emotional resonance between robots and human beings

Unable to start after idea installation

Alibaba Sentinel - 工作流程及原理解析

Shell编程规范与变量
随机推荐
MySQL operation database data error: fatal error encoded during command execution
Summary of common hooks
三子棋(玩家+电脑)
Hangao database best practice configuration tool Hg_ BP log collection content
多行文本省略
Detailed steps for installing MySQL 8.0 under Linux
3D高级渲染器:Artlantis studio 2021.2中文版
[robot learning] matlab kinematics and ADMAS dynamics analysis of manipulator gripper
12_ UE4 advanced_ Change a more beautiful character model
Verilog的时间系统任务----$time、$stime、$realtime
第09章_性能分析工具的使用
Analysis of OWT server source code (III) -- video module analysis of mixer in
Tp5.0 applet users do not need to log in and directly obtain the user's mobile number.
mysql大表联合查询优化,大事务优化,规避事务超时,锁等待超时与锁表
Navicat new database
SAP 中国本地化内容汇总
C语言程序设计 | 交换二进制数奇偶位(宏实现)
navicat新建数据库
01-sdram: Code of initialization module
2022-07-28 第四小组 修身课 学习笔记(every day)