yum install -y fontconfig mkdir /usr/share/fonts/chinese 上傳windows 電腦 c:\Windows\Fonts下面的字體庫到服務器/usr/share/fonts/chinese/ 目錄下 chmod -R 755 /usr/share/fonts/chinese yum -y install ttmkfdir ttmkfdir -e /usr/share/X11/fonts/encodings/encodings.dir vi /etc/fonts/fonts.conf <!-- Font directory list --> <dir>/usr/share/fonts</dir> <dir>/usr/share/X11/fonts/Type1</dir> <dir>/usr/share/X11/fonts/TTF</dir> <dir>/usr/local/share/fonts</dir> <dir>/user/share/fonts/chinese</dir> 增長這一行 <dir prefix="xdg">fonts</dir> <!-- the following element will be removed in the future --> <dir>~/.fonts</dir>
fc-cache 刷新內存中的字體庫緩存
執行fc-list 查看字體庫列表若是有出現咱們上傳的字體表示安裝成功windows