进入lnmp解压目录
sudo ./install.sh mphp
选择PHP版本号,然后配置环境
cd /usr/binsudo rm -rf phpcd /usr/binsudo ln -s /usr/local/php7.2/bin/php /usr/bin/php
7.2表示版本号,根据实际情况替换即可。