php5.6.21编译安装
centos 7.0 64位 php5.6.21编译安装
!/bin/bash#install_php-5.6.21.tar.gzcp-frp/usr/lib64/libldap*/usr/lib///源码包放在/usr/local/mysqlcd/usr/local/srctarxzvfphp-5.6.21.tar.gzcdphp-5.6.21./configure--prefix=/usr/local/php--with-config-file-path=/usr/local/php/etc--with-mysql=/usr/local/mysql--with-mysqli=/usr/local/mysql/bin/mysql_config--with-iconv-dir=/usr/local--with-freetype-dir--with-jpeg-dir--with-png-dir--with-zlib--with-gd--enable-gd-native-ttf--with-libxml-dir=/usr--enable-xml--disable-rpath--enable-discard-path--enable-safe-mode--enable-bcmath--enable-shmop--enable-sysvsem--enable-inline-optimization--with-curl--with-curlwrappers--enable-mbregex--enable-fastcgi--enable-fpm--enable-force-cgi-redirect--enable-mbstring--with-mcrypt--with-openssl--with-mhash--enable-pcntl--enable-sockets--with-ldap--with-ldap-sasl--with-xmlrpc--enable-zip--enable-soap--without-pearsed-i's/^EXTRA_LIBS=.*/&-llber/'$SOURCE_DIR/php-5.6.21/Makefilemakemakeinstallcpphp.ini-production/usr/local/php/etc/php.inicp/usr/local/php/etc/php-fpm.conf.default/usr/local/php/etc/php-fpm.confcpsapi/fpm/init.d.php-fpm/etc/init.d/php-fpmchmod+x/etc/init.d/php-fpmchkconfig--addphp-fpmchkconfigphp-fpmon
编译安装完成后启动php-fpm
/etc/init.d/php-fpmstart//查看php-fpm启动是否成功psaux|grepphp-fpmnestat-tnlp|grep127.0.0.1:9000
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。