mac 下访问项目的时候验证码无法显示,报错:
是因为gd未安装freetype,访问phpinfo()可以返现发现没有这个模块
然后大家给出比较终极的方案都是通过一行命令来解决:
curl -s https://php-osx.liip.ch/install.sh | bash -s 7.1
后面的7.1是自己的版本号,根据自己情况。
官网地址:https://php-osx.liip.ch/
因为php和php-fpm版本不一致找了好久的原因
注意php版本的一致!!!
参考:
http://blog.sina.com.cn/s/blog_1380a6f6b0102w1pd.html