当前位置:网站首页>生产部署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边栏推荐
- MySQL 操作数据库数据报错:Fatal error encountered during command execution
- C语言程序设计 | 交换二进制数奇偶位(宏实现)
- .NET 序列化枚举为字符串
- [Luogu p8352] independent set of small n (DP set DP) (property)
- What is SOA (Service Oriented Architecture)?
- 多线程实现多用例文件并发读取执行+Selenium Grid4实现测试框架分布式部署
- centos安装mysql8
- Pytest环境部署+用例执行管理+用例参数化
- SQL查询数据之多表(关联)查询
- 场景分类任务可用数据集(部分)
猜你喜欢

2. Nodejs -- path (\dirname, \filname), URL URL, querystring module, mime module, various paths (relative paths), web page loading (interview questions *)

融云 IM & RTC 能力上新盘点

MySQL - count(字段)、count(主键)、count(1)、count(*)的区别

MongoDB索引 (3)

Li Shuo, vice president of Baidu: it's a good thing that China's labor costs rise with the support of digital technology

OSPF experiment

每周推荐短视频:如何让产品开发更加有效?

解析机器人与人类情感共鸣的主观意识

MySQL compound query (important)

C language: Little Lele and Euclid
随机推荐
MySql的安装配置超详细教程与简单的建库建表方法
【机器人学习】机械臂抓手matlab运动学与admas动力学分析
Engineering boy: under 20 years old, ordinary but not mediocre
单例模式(饿汉式 懒汉式)
MySQL large table joint query optimization, large transaction optimization, avoiding transaction timeout, lock wait timeout and lock table
2.nodejs--路径(_dirname,_filname)、url网址、querystring模块、mime模块、各种路径(相对路径)、网页的加载(面试题*)
Trample --- discretization + tree array + difference
What is SOA (Service Oriented Architecture)?
Interpretation of ue4.25 slate source code
Feedback function of conference OA
Analysis of OWT server source code (III) -- video module analysis of mixer in
MongoDB索引 (3)
[QNX Hypervisor 2.2用户手册]9.11 ram(更新中)
Notes on the seventh day
Zone --- line segment tree lazy marking board sub problem
MySQL 操作数据库数据报错:Fatal error encountered during command execution
每周推荐短视频:如何让产品开发更加有效?
[QNX hypervisor 2.2 user manual]9.11 RAM (under update)
Double for loop
C陷阱与缺陷 第3章 语义“陷阱” 3.4 避免“举偶法”