apt-get install php5-gd service apache2 restart 转载于:https://www.cnblogs.com/zhanghw0354/archive/2012/09/24/2700026.html