以安装微软雅黑为例 1、寻找字体 从本地C:\Windows\Fonts\下找到微软雅黑字体 msyh.ttf、msyhbd.ttf 2、创建字体目录 cd /usr/share/fonts/ mkdir win 3、将字体上传至/usr/share/fonts/win下 4、建立字体索引,更新字体缓存 cd /usr/share/fonts/win mkfontscale #如果该命令提示command not found, 需自行安装 # yum install mkfontscale mkfontdir #如果该命令提示command not found,需自行安装 # yum install fontconfig fc-cache