是因为没有安装gd apt-get install libgd2-xpm-dev* apt-get install php5-gd 转载于:https://www.cnblogs.com/wuxie1989/p/6797511.html