当前位置:网站首页>生产部署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入门与进阶(十四)
- Verilog的时间系统任务----$time、$stime、$realtime
- 2022-07-28 第四小组 修身课 学习笔记(every day)
- 13_ue4进阶_蒙太奇动画实现一边走一边攻击
- 多线程实现多用例文件并发读取执行+Selenium Grid4实现测试框架分布式部署
- mysql大表联合查询优化,大事务优化,规避事务超时,锁等待超时与锁表
- 第09章_性能分析工具的使用
- Jinshan cloud returns to Hong Kong for listing: Hong Kong stock rush of Chinese to B cloud manufacturers
猜你喜欢
Summary of classic problems in Flink production environment
C language: Little Lele and Euclid
[open the door to the new world] see how the old bird of testing plays API testing between applause
Wechat's crazy use of glide - life cycle learning
解析Steam教育中的项目式学习创造力
Tp5.0 applet users do not need to log in and directly obtain the user's mobile number.
MySQL忘记密码怎么办
Implementation principle of golang synergy
第09章_性能分析工具的使用
2.nodejs--路径(_dirname,_filname)、url网址、querystring模块、mime模块、各种路径(相对路径)、网页的加载(面试题*)
随机推荐
Interpretation of ue4.25 slate source code
Interpreting AI robots' pet raising and leading fashion trends
Pgzero aircraft war
C language: Little Lele and hexadecimal conversion
Multithreading realizes concurrent reading and execution of multi use case files +selenium grid4 realizes distributed deployment of test framework
Seed random seed
TP5.0 小程序用户无需登录,直接获取用户手机号。
解析机器人与人类情感共鸣的主观意识
Pytest环境部署+用例执行管理+用例参数化
Analysis of OWT server source code (III) -- video module analysis of mixer in
Verilog's time system tasks - $time, $stime, $realtime
Data truncation and estimation
R语言ERROR: compilation failed for package ‘****‘
每周推荐短视频:如何让产品开发更加有效?
Notes on the seventh day
2022-07-28 第四小组 修身课 学习笔记(every day)
Thirty years of MPEG audio coding
Mysql复合查询(重要)
《QA离业务代码能有多近?》QA对业务代码进行可测性改造
2. Nodejs -- path (\dirname, \filname), URL URL, querystring module, mime module, various paths (relative paths), web page loading (interview questions *)