zoukankan      html  css  js  c++  java
  • zabbix 安装中文无法显示的问题

    vi /usr/share/zabbix/include/locales.inc.php
    把zh_CN后面参数写true

    然后去选择语言吧。

    如果,去选择语言的时候,你发现还是不能选择。。。。
    提示:
    You are not able to choose some of the languages, because locales for them are not installed on the web server.
    是因为你系统里没中文环境
    那么:设置中文环境
    第一步,安装中文包:
    apt-get install language-pack-zh-hant language-pack-zh-hans
    第二步,配置相关环境变量:
    vi /etc/environment
    在文件中增加语言和编码的设置:
    LANG="zh_CN.UTF-8"
    LANGUAGE="zh_CN:zh:en_US:en"
    第三步,重新设置本地配置:
    dpkg-reconfigure locales

    现在重启apache&zabbix_server两个服务一下,应该可以选了。。

    2、但是我发现翻译的不好,有大神做了更好的翻译
    参见:https://github.com/echohn/zabbix-zh_CN
    先进入
    cd /usr/share/zabbix/locale/zh_CN/LC_MESSAGES目录
    代码: 全选
    wget https://github.com/echohn/zabbix-zh_CN/ ... master.zip

    unzip master.zip
    rm frontend.mo
    cp zabbix-zh_CN-master/frontend.mo frontend.mo

    现在重启apache&zabbix_server两个服务
    service zabbix-server restart
    service apache2 restartvi /usr/share/zabbix/include/locales.inc.php
    把zh_CN后面参数写true

    然后去选择语言吧。

    如果,去选择语言的时候,你发现还是不能选择。。。。
    提示:
    You are not able to choose some of the languages, because locales for them are not installed on the web server.
    是因为你系统里没中文环境
    那么:设置中文环境
    第一步,安装中文包:
    apt-get install language-pack-zh-hant language-pack-zh-hans
    第二步,配置相关环境变量:
    vi /etc/environment
    在文件中增加语言和编码的设置:
    LANG="zh_CN.UTF-8"
    LANGUAGE="zh_CN:zh:en_US:en"
    第三步,重新设置本地配置:
    dpkg-reconfigure locales

    现在重启apache&zabbix_server两个服务一下,应该可以选了。。

    2、但是我发现翻译的不好,有大神做了更好的翻译
    参见:https://github.com/echohn/zabbix-zh_CN
    先进入
    cd /usr/share/zabbix/locale/zh_CN/LC_MESSAGES目录
    代码: 全选
    wget https://github.com/echohn/zabbix-zh_CN/ ... master.zip

    unzip master.zip
    rm frontend.mo
    cp zabbix-zh_CN-master/frontend.mo frontend.mo

    现在重启apache&zabbix_server两个服务
    service zabbix-server restart
    service apache2 restart

    解决方法:

    在Windows下拷贝一种字体到服务器目录下:例如拷贝到:

    [root@linux-node2 zabbix]# cd /usr/share/zabbix/assets/fonts/
    [root@linux-node2 fonts]# ls
    graphfont.ttf
    [root@linux-node2 fonts]# rz                                                                                                                                  [root@linux-node2 fonts]# ll
    总用量 0
    lrwxrwxrwx 1 root root 33 8月   9 17:04 graphfont.ttf -> /etc/alternatives/zabbix-web-font
    [root@linux-node2 fonts]# rz
    
    [root@linux-node2 fonts]# ls
    graphfont.ttf  STZHONGS.TTF
    [root@linux-node2 fonts]# mv STZHONGS.TTF graphfont.ttf 
    mv:是否覆盖"graphfont.ttf"? y
    [root@linux-node2 fonts]# ls
    graphfont.ttf
  • 相关阅读:
    ActiveMQ的用途
    HTTP 状态码的完整列表
    Linux中脚本运行错误(坏的解释器:没有那个文件或目录)
    Linux下ping: unknown host www.baidu.com的解决办法
    python中的collection
    Table里嵌套ASPXGridView
    致2015
    WPF学习之Binding(二)
    WPF学习之Binding(一)
    WPF UI布局(Layout)
  • 原文地址:https://www.cnblogs.com/xuefy/p/11009143.html
Copyright © 2011-2022 走看看