用户注册



邮箱:

密码:

用户登录


邮箱:

密码:
记住登录一个月忘记密码?

发表随想


还能输入:200字
云代码 - php代码库

源码编译的方式安装PHP与php-fpm

2014-12-06 作者: php源代码大全举报

[php]代码库

wget http://www.php.net/get/php-5.3.6.tar.gz/from/this/mirror
tar xzvf php-5.3.6.tar.gz
cd php-5.3.6
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --enable-fpm
make && make install 
cp php.ini-production /usr/local/php/etc/php.ini


# rpm -qa |grep  libxml2
libxml2-2.6.26-2.1.12
libxml2-python-2.6.26-2.1.12



[root@nowamagic ~]# /usr/local/php/sbin/php-fpm
[05-Oct-2013 12:09:26] ALERT: [pool www] pm.min_spare_servers(0) must be a positive value
[05-Oct-2013 12:09:26] ERROR: failed to post process the configuration


cd /usr/local/php/etc/
cp php-fpm.conf.default php-fpm.conf
vim php-fpm.conf


[root@nowamagic ~]# sed -i 's/;pm.max_spare_servers = 35/pm.max_spare_servers = 35/g' /usr/local/php/etc/php-fpm.conf
[root@nowamagic ~]# /usr/local/php/sbin/php-fpm
[05-Oct-2013 12:13:51] WARNING: [pool www] pm.start_servers is not set. It's been set to 20.
[root@nowamagic ~]# sed -i 's/;pm.start_servers = 20/pm.start_servers = 20/g' /usr/local/php/etc/php-fpm.conf
[root@nowamagic ~]# /usr/local/php/sbin/php-fpm
[05-Oct-2013 12:14:09] ERROR: bind() for address '127.0.0.1:9000' failed: Address already in use (98)



netstat -ntlp | grep 9000
tcp        0      0 127.0.0.1:9000              0.0.0.0:*                   LISTEN      14096/php-fpm



网友评论    (发表评论)


发表评论:

评论须知:

  • 1、评论每次加2分,每天上限为30;
  • 2、请文明用语,共同创建干净的技术交流环境;
  • 3、若被发现提交非法信息,评论将会被删除,并且给予扣分处理,严重者给予封号处理;
  • 4、请勿发布广告信息或其他无关评论,否则将会删除评论并扣分,严重者给予封号处理。


扫码下载

加载中,请稍后...

输入口令后可复制整站源码

加载中,请稍后...