• zabbix-web界面图形中文乱码解决方法


    1.搜索windows-server X86-64机器上C:/windows/fonts的simkai.tts文件,windows7下有时候不行。
    2.把它拷贝到zabbix的web端的fonts目录下例如:/var/www/html/zabbix/fonts或apache安装目录htdocs/zabbix/fonts目录下:

    [root@test fonts]# pwd
    ../apache2/htdocs/zabbix/fonts
    [root@test fonts]# ls
    DejaVuSans.ttf simkai.ttf

    3.修改zabbix的web端/include/defines.inc.php

    [root@testfonts]# find / -name defines.inc.php
    /opt/apache2/htdocs/zabbix/include/defines.inc.php

    [root@testfonts]# vi /opt/apache2/htdocs/zabbix/include/defines.inc.php

    1. //define('ZBX_FONT_NAME', 'DejaVuSans');
    2. define('ZBX_FONT_NAME', 'SIMKAI');
    3. //define('ZBX_GRAPH_FONT_NAME', 'DejaVuSans'); // font file name
    4. define('ZBX_GRAPH_FONT_NAME', 'SIMKAI'); // font file name
    其中SIMKAI为字库名字,不包含ttf后缀
    ===========
    4. 常见问题 依旧乱码:由于初始化数据库的时候未使用utf8编码所致.初始化数据库使用命令 create database zabbix default charset utf8; 或者my.cnf增加如下配置 default-character-set = utf8
  • 相关阅读:
    安装oracle常见问题和解决方案
    配置VNC
    爬虫
    启动Tomcat报异常host-manager does not exist or is not a readable directory
    linux升级openssl
    linux6的yum源
    linux升级openssh
    linux操作oracle
    Linux 系统结构
    Linux MD5值递归比对目录中的文件是否有修改
  • 原文地址:https://www.cnblogs.com/rusking/p/4481950.html
Copyright © 2020-2023  润新知