1、典型的LNMP安装问题
2、首先你得准备编译环境
yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers bison lynx
3、下载所需MySQL/nginx/php等安装包
4、安装nginx和mysql没有先后顺序
5、安装php依赖包,安装php,安装php扩展及优化包
6、详细的安装步骤可以网上查LNMP安装步骤