安装支持软件包
yum install -y openssl* libxml2* bzip* libcurl*
安装过程:
./configure \
--prefix=/usr/local/php \
--with-openssl \
--enable-fpm \
--enable-sockets \
--enable-sysvshm \
--enable-mbstring \
--with-freetype-dir \
--with-jpeg-dir \
--with-png-dir \
--with-zlib-dir \
--with-libxml-dir=/usr \
--enable-xml \
--with-config-file-path=/etc \
--with-config-file-scan-dir=/etc/php.d \
--with-bz2 \
--with-curl
其它选项:
--with-mhash \
--with-mcrypt \
--with-mysqli=/usr/bin/mysql_config \
--with-mysql=/usr/include/mysql \
make
make install
cp init.d.php-fpm /etc/init.d/php-fpm
chmod +x /etc/init.d/php-fpm
chkconfig --add php-fpm
chkconfig php-fpm on
cp /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.conf
service php-fpm start
vim /usr/local/php/etc/php-fpm.conf
listen.allowed_clients = 192.168.100.160
listen = 192.168.100.161:9000
service php-fpm restart
共同学习,写下你的评论
评论加载中...
作者其他优质文章