zabbix6-中文乱码问题。

Posted on 2024-11-07 10:38  风行天下-2080  阅读(16)  评论(0编辑  收藏  举报

1、

rocky linux 9

[root@B01 ~]# ls /usr/share/fonts/dejavu-s
dejavu-sans-fonts/      dejavu-sans-mono-fonts/ dejavu-serif-fonts/     
[root@B01 ~]# ls /usr/share/fonts/dejavu-sans-fonts/DejaVuSans.ttf
/usr/share/fonts/dejavu-sans-fonts/DejaVuSans.ttf

[root@B01 ~]# cd /usr/share/fonts/dejavu-sans-fonts/
[root@B01 dejavu-sans-fonts]# mv /usr/share/fonts/dejavu-sans-fonts/DejaVuSans.ttf DejaVuSans.ttf.bak

[root@CNT-ZBX6-PB01 dejavu-sans-fonts]# rz -E
rz waiting to receive.
[root@B01 dejavu-sans-fonts]# ls msyhbd.ttc
msyhbd.ttc
[root@B01 dejavu-sans-fonts]# mv msyhbd.ttc DejaVuSans.ttf
[root@B01 dejavu-sans-fonts]#
替换完字体后,会正常显示乱码-中文。

Copyright © 2024 风行天下-2080
Powered by .NET 9.0 on Kubernetes