1、添加源apt-get install python-software-properties -yadd-apt-repository ppa:zanfur/php5.5apt-get update 2、安装php5.5apt-get install php5-gd php5-mysql mysql-server nginx php5-cli