创建包目录
cd /
mkdir packages
cd packages
下载Php5.6.9
wget http://cn2.php.net/distributions/php-5.6.9.tar.gz
ls -la
tar zxvf php-5.6.9.tar.gz
ls -la
cd php-5.6.9
./configure --prefix=/usr/local/php5.6.9 --with-curl --with-freetype-dir --with-gd --with-gettext --with-iconv-dir --with-kerberos --with-libdir=lib64 --with-libxml-dir --with-mysql --with-mysqli --with-openssl --with-pcre-regex --with-pdo-mysql --with-pdo-sqlite --with-pear --with-png-dir --with-xmlrpc --with-xsl --with-zlib --enable-fpm --enable-bcmath --enable-libxml --enable-inline-optimization --enable-gd-native-ttf --enable-mbregex --enable-mbstring --enable-pcntl --enable-shmop --enable-soap --enable-sockets --enable-sysvsem --enable-xml --enable-zip --enable-debug
make && install
cp -R ./sapi/fpm/php-fpm.conf /usr/local/php5.6.9/etc/php-fpm.conf
cp php.ini-development /usr/local/php5.6.9/lib/php.ini
cp -R ./sapi/fpm/php-fpm /etc/init.d/php-fpm5.6.9
gdb php
php run /var/www/html/Weixin_PHP/server.php start -d
可以监听workerman