yum install gd-devel libpng-devel libjpeg-devel libmcrypt-devel libtool-ltdl libtool-ltdl-devel libxml2 libxml2-devel libcurl libcurl-devel bzip2 bzip2-devel icu libicu-devel openldap-devel -y
./configure --prefix=/home/work/app/php --enable-fpm --with-fpm-user=work --with-fpm-group=work --with-config-file-path=/home/work/app/php/etc --with-openssl --with-zlib --enable-bcmath --with-curl --with-bz2 --enable-exif --enable-ftp --with-gd --with-freetype-dir --with-jpeg-dir --with-gettext --enable-intl --with-ldap --enable-mbstring --with-mcrypt --with-mysql=mysqlnd --with-mysqli=mysqlnd --enable-opcache --with-pdo-mysql=mysqlnd --enable-soap --enable-sockets --enable-zip --enable-mysqlnd --enable-calendar --enable-dba --with-mhash --enable-pcntl --enable-shmop --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx
make && make install
如果访问不了虚拟机,请关闭虚拟机防火墙
关闭命令: service iptables stop
永久关闭防火墙:chkconfig iptables off
两个命令同时运行,运行完成后查看防火墙关闭状态
service iptables status