当前位置:网站首页>生产部署zabbix5.0笔记
生产部署zabbix5.0笔记
2022-07-29 02:54:00 【ELIAUK``】
0.zabbix5.0 TLS部署 #官网推荐yum方式部署
#------------------------------zabbix-server部署------------------------------#
#官方地址
https://www.zabbix.com/cn/downlo ... 7&db=mysql&ws=nginx
#系统和内核版本
CentOS Linux release 7.6.1810、内核3.10.0-957.el7.x86_64)
#安装zabbix仓库、zabbix软件和数据库,修改仓库配置
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#启动数据库
systemctl enable mariadb --now初始化数据库,并设置密码
mysql_secure_installation#数据库脚本导入
create database zabbix character set utf8 collate utf8_bin;
grant all privileges on zabbix.* to 'zabbix'@'localhost' identified by 'zabbix';#导入初始架构和数据,系统将提示您输入新创建的密码
zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix#为Zabbix server配置数据库
sed -i 's/# DBPassword=/DBPassword=zabbix/' /etc/zabbix/zabbix_server.conf#为Zabbix前端配置PHP #必须访问server_name,否则报错403.server_name填IP即可
#一定要修改example.com为自己访问的域名
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#修改前端页面访问真实资源目录
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
#更改时区亚洲上海
sed -i '$iphp_value[date.timezone] = Asia/Shanghai' /etc/opt/rh/rh-php72/php-fpm.d/zabbix.conf
#启动服务并设置开机自启
systemctl restart zabbix-server zabbix-agent rh-nginx116-nginx rh-php72-php-fpm
systemctl enable zabbix-server zabbix-agent rh-nginx116-ngin边栏推荐
- 金山云回港上市:中国TO B云厂商的港股奔袭
- Linux下安装MySQL8.0的详细步骤
- .net serialize enumeration as string
- Pytest environment deployment + use case execution management + use case parameterization
- Analysis of Project-based Learning Creativity in steam Education
- 第09章_性能分析工具的使用
- 第2章 VRP命令行
- 万字详解 Google Play 上架应用标准包格式 AAB
- Multithreading realizes concurrent reading and execution of multi use case files +selenium grid4 realizes distributed deployment of test framework
- 混淆矩阵学习笔记
猜你喜欢

vasp计算任务报错:M_divide:can not subdivide 8 nodes by 6

Unable to start after idea installation

向DataFrame中的特定位置添加一行

Verilog's time system tasks - $time, $stime, $realtime

Tp5.0 applet users do not need to log in and directly obtain the user's mobile number.

Zone --- line segment tree lazy marking board sub problem

2022-07-28 顾宇佳 学习笔记

Verilog的时间系统任务----$time、$stime、$realtime

创客教育的起源和内涵的基本理念

2. Nodejs -- path (\dirname, \filname), URL URL, querystring module, mime module, various paths (relative paths), web page loading (interview questions *)
随机推荐
百度副总裁李硕:数字技术加持下中国劳动力成本上升是好事
万字详解 Google Play 上架应用标准包格式 AAB
Tp5.0 applet users do not need to log in and directly obtain the user's mobile number.
Pytest environment deployment + use case execution management + use case parameterization
The basic concept of the origin and connotation of maker Education
Groupby method
Typescript学习(一)
centos安装mysql8
微信为之疯狂的Glide使用——之生命周期学习
工科男生:20岁未满,平凡但不平庸
Double for loop
codeforces每日5题(均1500)-第二十五天
JVM基础入门篇一(内存结构)
Day 5 experiment
[NPM error] - NPM err code eresolve and NPM err eresolve could not resolve problems
Jinshan cloud returns to Hong Kong for listing: Hong Kong stock rush of Chinese to B cloud manufacturers
C陷阱与缺陷 第3章 语义“陷阱” 3.3 作为参数的数组声明
【机器人学习】机械臂抓手matlab运动学与admas动力学分析
Pgzero aircraft war
2022-07-28 第四小组 修身课 学习笔记(every day)