yum -y install fontconfig
yum -y install ttmkfdir
打包weidows操作系统中的字体重命名为chinese.zip
Windows操作系统字体位于C: Windows/Fonts目录
将chinese.zip上传至/usr/share/fonts目录解压并授权
我这里16服务器已经上传,采用scp命令在另外两台服务器上直接拷贝至相应目录
其他方式上传也可以只要文件可以到达指定位置
scp -r root@172.19.104.16:/usr/share/fonts/chinese.zip /usr/share/fonts
cd /usr/share/fonts
unzip chinese.zip
授权
chmod -R 755 /usr/share/fonts/chinese
ttmkfdir -e /usr/share/X11/fonts/encodings/encodings.dir
修改配置,新增标签
vim /etc/fonts/fonts.conf
刷新字体缓存,查看字体列表
fc-cache
fc-list
可以看到很多chinese目录下面的字体