1、使用一键安装
https://oneinstack.com/
解压
cd oneinstack
./install.sh
2、一步一步安装
安装PHP:https://segmentfault.com/a/1190000017900729