centos系统中kaptcha乱码问题解决

Windows下开发验证码正常,部署到linux后,验证码失效!

1、[root@root ~]# cd fc-list
     -bash: cd: fc-list: No such file or directory

2、若上面未失败则忽略此步骤
      [root@root ~]# yum -y install fontconfig

  用fontconfig来安装字体库 

.........

Downloading packages:
ttmkfdir-3.0.9-42.el7.x86_64.rpm         |  48 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : ttmkfdir-3.0.9-42.el7.x86_64                  1/1
Verifying  : ttmkfdir-3.0.9-42.el7.x86_64                  1/1

Installed:
ttmkfdir.x86_64 0:3.0.9-42.el7                                                                                               

Complete!

3、执行ttmkfdir命令

[root@root~]# ttmkfdir -e /usr/share/X11/fonts/encodings/encodings.dir

4、(XFTP)上传字体到文件夹(楼主添加的是微软雅黑,其它字体有点模糊)

4、修改字体

[root@root~]# vi /etc/fonts/fonts.conf

5、保存后执行

[root@root~]# fc-list

6、重启系统

7、修改后

晚了,溜了,程序员早睡早起挤地铁,哈哈。。。。

猜你喜欢

转载自blog.csdn.net/qq_38292703/article/details/83280536
今日推荐