文章标签 ‘lnmp’

              ◆简介       虽然lnmp中带的php5.2.10已经能够满足目前的php程序运行。不过看到php5.3.3发布后一直没有更新。就像我用nginx一只用着最新的工程预览版。看了下php5.3.3已经自带php-fpm了。只需要咋编译配置php的时候加上 –enable-fpm 参数。以前补丁上fpm是通过xml文件配置的。新版本的php5.3.3的fpm是通过ini文件配置的。遗憾的是php5.3.3 不支持Zend Optimizer  还有文中我用旧php.ini文件放到里面产生了很多问题,如果你遇到什么问题请留言给我。贴出启动php-pmf的报错代码。^_^。2010年8月17日13:21:32成功升级php为php5.3.3 php 5.3.3 源码中开始包含 php-fpm,不用专门再打补丁了,只需要解开源码直接configure,关于php-fpm的编译参数有 –enable-fpm –with-fpm-user=www –with-fpm-group=www –with-libevent-dir=libevent位置。 这个php-fpm 不再支持 php-fpm 补丁具有的 /usr/local/php/sbin/php-fpm (start|stop|reload)等命令,需要使用信号控制: master进程可以理解以下信号 SIGINT, SIGTERM 立刻终止 SIGQUIT 平滑终止 SIGUSR1 重新打开日志文件 SIGUSR2 平滑重载所有worker进程并重新载入配置和二进制模块 示例: php-fpm 关闭: kill -SIGINT `cat /usr/local/php/var/run/php-fpm.pid` php-fpm 重启: kill -SIGUSR2 `cat /usr/local/php/var/run/php-fpm.pid`

2010年8月17日13:41 | 7 条评论

如果你是采用www.lnmp.org一键包搭建的lnmp环境。软件目录结构一样。复制以下代码到ssh中直接升级nginx到新版本。 Bash语言: Codee#12550 01 wget http://www.nginx.org/download/nginx-0.8.49.tar.gz 02 tar zxvf nginx-0.8.49.tar.gz 03 cd nginx-0.8.49 04 ./configure –user=www –group=www –prefix=/usr/local/nginx –with-http_stub_status_module –with-http_ssl_module  –with-http_sub_module 05 make 06 mv /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.old 07 cd objs/ 08 cp nginx /usr/local/nginx/sbin/ 09 /usr/local/nginx/sbin/nginx -t 10 kill -USR2 `cat /usr/local/nginx/logs/nginx.pid` 11 kill -QUIT `cat /usr/local/nginx/logs/nginx.pid.oldbin` 12 /usr/local/nginx/sbin/nginx -v 13 cd .. 14 cd [...]

2010年8月4日15:57 | 没有评论
QR Code Business Card
Copyright ©1987-2011 流水理鱼|wwek . Google Sitemap . Baidu Sitemap . 网站地图 . 渝ICP备09003253号
Powered by WordPress 3.3.1 Theme by themename