你的位置:首页 > 操作系统

[操作系统]解决zabbix图中出现中文乱码问题 图中的中文会变成方块

[[email protected] src]# wget http://down1.chinaunix.net/distfiles/ttf-arphic-uming_0.0.20050501-1.tar.gz

 

[[email protected] ~]# find / -name fonts/etc/fonts/usr/share/fonts/usr/share/libwmf/fonts/usr/share/mime/fonts/usr/share/X11/fonts/usr/share/mimelnk/fonts/usr/html/zabbix/php/fonts #注意/usr/include/X11/fonts/usr/local/src/zabbix-3.0.3/frontends/php/fonts

 

[[email protected] ~]# cd /usr/html/zabbix/php/fonts/ #web的根目录[[email protected] fonts]# lsDejaVuSans.ttf[[email protected] fonts]# cp DejaVuSans.ttf /  #备份原字符文件[[email protected] fonts]# cp /usr/local/src/ttf-arphic-umingttf-arphic-uming-0.0.20050501/     ttf-arphic-uming_0.0.20050501-1.tar.gz[[email protected] fonts]# cp /usr/local/src/ttf-arphic-umingttf-arphic-uming-0.0.20050501/     ttf-arphic-uming_0.0.20050501-1.tar.gz[[email protected] fonts]# cp /usr/local/src/ttf-arphic-uming-0.0.20050501/  #原来的文件CONTRIBUTERS      fonts.dir       README.Bitmap     uming.ttfdebian/        fonts.scale      ttf-arphic-uming    encodings.dir     license/        uming2mbe.xdelta    fonts.alias      README         umingmbe2uming.xdelta [[email protected] fonts]# cp /usr/local/src/ttf-arphic-uming-0.0.20050501/uming.ttf ./DejaVuSans.ttf cp: overwrite `./DejaVuSans.ttf'? y

 

http://pan.baidu.com/s/1bo5zRMR