给你个一键安装的脚本
yum install -y wget unzip && wget https://git.io/v2OPx -O LNMP.zip && unzip LNMP.zip && cd LNMP-master && bash lnmp.sh
你直接粘贴回车就行了
这是参考网址