解决Linux系统Centos下Activiti工作流乱码问题

乱码是因为服务器没有安装字体导致的

1、查看中文字体
fc-list :lang=zh

2、安装字体
yum -y install fontconfig #安装字体库
yum -y install ttmkfdir mkfontscale #安装字体索引信息

可拷贝Windows的字体目录:C:\Windows\Fonts
如果你代码里写的是宋体,可以直接下载我的资源 字体下载

3、linux字体目录:/usr/share/fonts,建议创建一个目录mkdir chinese 放中文字体

4、把字体上传到/usr/share/fonts/chinese目录

5、然后在/usr/share/fonts/chinese执行命令,生成字库索引信息
mkfontscale
mkfontdir

6、更新字体缓存
fc-cache
fc-cache -fv
source /etc/profile
. /etc/profile
使用fc-list :lang=zh查看安装的中文字体

重启springboot工作流,搞定.

猜你喜欢

转载自blog.csdn.net/u014745631/article/details/104848665