zabbix 安装中文无法显示的问题

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
  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值