Centos7中验证码图片报错

在windows开发环境下,没有问题,在Linux系统中报错 System.DrawingCore.GDIPlus,参考链接:https://www.cnblogs.com/lori/p/8117932.html

yum whatprovides libgdiplus && yum install -y epel-release && yum install -y libgdiplus-2.10-10.el7.x86_64 && yum install -y libgdiplus-devel

再配置一个链接

ln -s /usr/lib64/libgdiplus.so gdiplus.dll

这样就ok了,但是出来是乱码。。。

猜你喜欢

转载自www.cnblogs.com/wangbg/p/9932806.html
今日推荐