zoukankan      html  css  js  c++  java
  • 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
  • 相关阅读:
    Hadoop作业提交多种方案具体流程详解
    教你一步搭建Flume分布式日志系统
    Hadoop详细配置
    linux 运行springboot sqoop项目
    SQL+ 正则表达式
    SQL+ 正则表达式
    DB2中实现正则表达式
    DB2中实现正则表达式
    spring4整合cxf3
    spring4整合cxf3
  • 原文地址:https://www.cnblogs.com/rusking/p/4481950.html
Copyright © 2011-2022 走看看