您好,登錄后才能下訂單哦!
centos 7.0 64位 php5.6.21編譯安裝
!/bin/bash #install_php-5.6.21.tar.gz cp -frp /usr/lib64/libldap* /usr/lib/ //源碼包放在/usr/local/mysql cd /usr/local/src tar xzvf php-5.6.21.tar.gz cd php-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-pear sed -i 's/^EXTRA_LIBS =.*/& -llber/' $SOURCE_DIR/php-5.6.21/Makefile make make install cp php.ini-production /usr/local/php/etc/php.ini cp /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.conf cp sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm chmod +x /etc/init.d/php-fpm chkconfig --add php-fpm chkconfig php-fpm on
編譯安裝完成后啟動php-fpm
/etc/init.d/php-fpm start //查看php-fpm啟動是否成功 ps aux | grep php-fpm nestat -tnlp | grep 127.0.0.1:9000
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。