1.下载PHP源代码 wget http://cn2.php.net/distributions/php-7.0.8.tar.xz
2.解压缩 tar -xvf php-7.0.8.tar.xz
3.进入到解压缩之后的目录: cd php-7.0.8/
4.进行配置,指定安装目录:./configure --prefix=/Data/apps/php
5. 提示错误:error: xml2-config not found. Please check your libxml2 installation
安装libxml2 命令:sudo apt-get install libxml2-dev
6.然后输入命令 make
7.进行安装 make install