龙空技术网

CentOS8.5下安装部署开源监控系统Zabbix 6.0LTS

walkingcloud 1623

前言:

此刻小伙伴们对“centos中文字体安装”大概比较注重,各位老铁们都想要学习一些“centos中文字体安装”的相关内容。那么小编在网络上搜集了一些关于“centos中文字体安装””的相关知识,希望同学们能喜欢,看官们一起来了解一下吧!

CentOS8.5下安装部署开源监控系统Zabbix 6.0LTS一、 CentOS8.5操作系统初始环境准备

CentOS8于2021年年底停止了服务,在使用yum源安装时候会出现下面错误

错误:Failed to download metadata for repo ‘AppStream’: Cannot prepare internal mirrorlist: No URLs in mirrorlist”

解决办法

1、替换成vault源

cd /etc/yum.repos.d/sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*sed -i 's|#baseurl=; /etc/yum.repos.d/CentOS-*
2、更新yum源为阿里云镜像源
wget -O /etc/yum.repos.d/CentOS-Base.repo  -i -e '/mirrors.cloud.aliyuncs.com/d' -e '/mirrors.aliyuncs.com/d' /etc/yum.repos.d/CentOS-Base.repoyum clean allyum makecache

截图略

下面参考Zabbix官方安装向导说明文档进行安装部署

(图片可点击放大查看)

二、安装MySQL8.0

dnf install mysql-server

(图片可点击放大查看)

vim /etc/my.cnf.d/charset.cnfcat /etc/my.cnf.d/charset.cnf# set default charaset# for the case of 4 bytes UTF-8, specify [utf8mb4][mysqld]character-set-server = utf8mb4systemctl enable --now mysqld

(图片可点击放大查看)

systemctl restart mysqldmysql_secure_installation

(图片可点击放大查看)

(图片可点击放大查看)

设置MySQL root用户可以远程登录

firewall-cmd --add-service=mysql --permanentfirewall-cmd --reload
mysql -uroot -p -h 127.0.0.1use mysql;update user set host= '%' where user = 'root';flush privileges;

(图片可点击放大查看)

最后验证远程登录

mysql -uroot -p -h 192.168.31.47
三、安装Zabbix6.0
rpm -Uvh  install zabbix-server-mysql zabbix-web-mysql zabbix-nginx-conf zabbix-sql-scripts zabbix-selinux-policy zabbix-agent

(图片可点击放大查看)

四、zabbix数据库初始化

mysql -uroot -pcreate database zabbix character set utf8mb4 collate utf8mb4_bin;create user zabbix@'%' identified by 'Zabbix@2022';grant all privileges on zabbix.* to zabbix@'%';

(图片可点击放大查看)

zcat /usr/share/doc/zabbix-sql-scripts/mysql/server.sql.gz | mysql -uzabbix -p zabbixvim /etc/zabbix/zabbix_server.conf cat /etc/zabbix/zabbix_server.conf  | grep DBPassword#配置文件中填入数据库密码DBPassword= Zabbix@2022

(图片可点击放大查看)

五、启动Zabbix-Server及相关组件1、编辑配置文件 /etc/nginx/conf.d/zabbix.conf, 取消如下两行的注释

vi /etc/nginx/conf.d/zabbix.conf          listen          80;#        server_name     zabbix.walkingcloud.cn;
2、/etc/nginx/nginx.conf 中下面一段注释掉后重启nginx服务
     server {        listen       80 default_server;        listen       [::]:80 default_server;        server_name  _;        root         /usr/share/nginx/html;        # Load configuration files for the default server block.        include /etc/nginx/default.d/*.conf;        location / {        }        error_page 404 /404.html;            location = /40x.html {        }        error_page 500 502 503 504 /50x.html;            location = /50x.html {        }    }

(图片可点击放大查看)

(图片可点击放大查看)

3、启动服务

systemctl restart zabbix-server zabbix-agent nginx php-fpmsystemctl enable zabbix-server zabbix-agent nginx php-fpmfirewall-cmd --permanent --zone=public --add-port=80/tcpfirewall-cmd --permanent --zone=public --add-port=10051/tcpfirewall-cmd --permanent --zone=public --add-port=10050/tcpfirewall-cmd --reload

(图片可点击放大查看)

六、Zabbix Web界面初始化

(图片可点击放大查看)

(图片可点击放大查看)

(图片可点击放大查看)

(图片可点击放大查看)

Tips

1、语言包问题

解决办法:

(图片可点击放大查看)

dnf install langpacks-zh_CN.noarch

(图片可点击放大查看)

(图片可点击放大查看)

2、图形乱码问题

(图片可点击放大查看)

 cd /usr/share/zabbix/assets/fonts/ ll /etc/alternatives/zabbix-web-font  cd /usr/share/fonts/dejavu/ mv DejaVuSans.ttf DejaVuSans.ttf_bak Windows系统中找到msyh.ttc字体文件上传 mv msyh.ttc DejaVuSans.ttf

(图片可点击放大查看)

(图片可点击放大查看)

以上就是Zabbix6.0LTS的版本的部署

之前也有介绍过Zabbix4.0老版本的部署

CentOS7下Zabbix监控平台的搭建

CentOS7下部署Zabbix4.0

CentOS7下Zabbix5.0+PostgreSQL12+TimescaleDB部署实践

(图片可点击放大查看)

标签: #centos中文字体安装