php-fpm with php-5.3.2 + APC

php-fpm 现在php官方内部已经出版本了,据说以后会出现在 php core 里,如果现在安装的话,可以svn得到最新代码,我抢先为快。 至于缓存,我用的facebook 试用的apc 测试了一段时间还很,满意。
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.02.tar.bz2

wget
http://monkey.org/~provos/libevent-1.4.13-stable.tar.gz

wget
http://pecl.php.net/get/APC-3.1.3p1.tgz
tar zxvf pcre-8.02.tar.bz2

cd pcre-8.02

./configure --enable-utf8 --enable-pcregrep-libbz2

make

make install

tar zxvf libevent-1.4.13-stable.tar.gz

cd libevent-1.4.13-stable

./configure --prefix=/usr

make

make install
tar jxvf php-5.3.2.tar.bz2

cd php-5.3.2

svn co http://svn.php.net/repository/php/php-src/trunk/sapi/fpm sapi/fpm

./buildconf --force

./configure --prefix=/usr/local/php --enable-fpm --disable-debug --disable-safe-mode --disable-ipv6 --enable-ftp --enable-zip --with-libevent-dir --with-fpm-user=www --with-fpm-group=www --with-config-file-path=/usr/local/php/etc --with-libxml-dir --with-openssl --with-pcre-regex --with-zlib --with-zlib-dir --with-bz2 --with-curl --with-libxml-dir --with-pcre-dir --with-openssl-dir --with-gd --with-jpeg-dir --with-png-dir --with-zlib-dir --with-freetype-dir --with-gettext --with-mhash --with-ldap --with-ldap-sasl --with-mcrypt --with-mysql=mysqlnd --with-mysql-sock=/tmp/mysql.sock --with-zlib-dir --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-zlib-dir --with-openssl-dir --with-libxml-dir --with-libxml-dir --with-libxml-dir --with-iconv-dir=/usr/local --with-pear

make ZEND_EXTRA_LIBS='-liconv'

make install

cp php.ini-production /usr/local/php/etc/php.ini

cp sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm

chmod 755 /etc/init.d/php-fpm
安装额外的 插件
tar zxvf APC-3.1.3p1.tgz

cd APC-3.1.3p1

./configure --enable-apc --enable-mmap --with-php-config=/usr/local/php/bin/php-config

make

make install

tar zxvf memcache-2.2.5.tgz

cd memcache-2.2.5

./configure --with-php-config=/usr/local/php/bin/php-config

make

make install
cd /usr/local/php/etc

mkdir fpm.d

vim php.ini
把 extension_dir = "./" 改为

extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/"
extension = "memcache.so"
;因为最新版本的 apc 是不需要加任何参数,默认就是启动的
extension = "apc.so"

mv php-fpm.conf php-fpm.conf.bak
cat php-fpm.conf
;
; Global
;
pid = /usr/local/php/var/run/php-fpm.pid
error_log = /usr/local/php/var/log/php-fpm.log
log_level = notice
emergency_restart_threshold = 10
emergency_restart_interval = 1m
process_control_timeout = 5s
daemonize = yes
;pools here
include = /usr/local/php/etc/fpm.d/*.conf
cd fpm.d
cat eric_blog.conf
;
; eric's blog pool
;
[blog]
listen = 127.0.0.1:9000
listen.backlog = -1
listen.allowed_clients = 127.0.0.1
;listen.owner = www
;listen.group = www
;listen.mode = 0666
user = www
group = www
; 有两种形式,static , dynamic 默认是以dynamic。
pm = static
pm.max_children = 50
;pm.start_servers = 20
;pm.min_spare_servers = 5
;pm.max_spare_servers = 35
pm.max_requests = 65535
;pm.status_path = /status
;ping.path = /ping
;ping.response = pong
request_terminate_timeout = 0s
request_slowlog_timeout = 0s
slowlog = /usr/local/php/var/log/php-fpm.log.slow
rlimit_files = 65535
rlimit_core = 0
catch_workers_output = yes
php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f
php_flag[display_errors] = off
php_admin_value[error_log] = /usr/local/php/var/log/fpm-php.www.log
php_admin_flag[log_errors] = on
php_admin_value[memory_limit] = 20M
php_admin_value[open_basedir] = /var/www/wordpress:/home/www/sessions:/tmp
php_admin_value[session.save_path] = /home/www/sessions
Php 官方出的 php-fpm 配置文件抛弃了 xml格式,采用 php.ini 格式式样,但是基本的配置是没有变的·其他 nginx 以及 mysql 的安装我就不写了。 创建一个 phpinfo(); 看一下 


本文转自Deidara 51CTO博客,原文链接:http://blog.51cto.com/deidara/317026,如需转载请自行联系原作者

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/279479.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

kotlin 初始化数组

为什么80%的码农都做不了架构师&#xff1f;>>> //初始化5个元素的数组&#xff0c;每个都为"0" val a:Array<String> Array(5, {"0"}) // val a:Array<String> Array(5, {"0"}) println(a.joinToString(separator &…

Tomcat - Tomcat安装

Tomcat官网&#xff1a;http://tomcat.apache.org/ 准备&#xff1a;JAVA环境布置完成 一、Windows平台 1. 版本选择 1&#xff09; 进入官网 2&#xff09; 查看版本匹配 官网说明 https://tomcat.apache.org/whichversion.html 3&#xff09; 需要查看已安装JAVA版本请打开终…

sonos 服务器_如何在Sonos上收听有声读物

sonos 服务器Audible, Amazon’s subscription audiobook service, was conspicuously absent from Sonos for the last few years. Thankfully, it’s now back. Here’s how to use it. 过去几年&#xff0c;Sonos明显缺少Amazon的订阅有声读物服务Audible。 幸运的是&#x…

SQL Server Management Studio清除历史登陆记录

今天做渗透,登陆目标服务器的数据库管理后发现留下了登陆的记录,自己鼓捣了半天,终于解决 删除C:\Documents and Settings\guest\Application Data\Microsoft\Microsoft SQL Server\90\Tools\Shell下的 mru.dat文件就可以了 本文转sinojelly51CTO博客&#xff0c;原文链接&…

停止抱怨英语_停止抱怨垂直视频

停止抱怨英语People have strong feelings about which direction video should be oriented. There are good reasons for that, but in some contexts, vertical video is completely fine and you should stop complaining about it. 人们对视频应该定向哪个方向有着强烈的感…

facebook_如何清除您的Facebook搜索记录

facebookSearch histories can tell a lot about you, and that’s especially true of Facebook’s search history. If you don’t want that sort of data left sitting around, here’s how to clear it. 搜索历史可以告诉您很多信息&#xff0c;Facebook的搜索历史尤其如此…

UI交互设计教程分享:提高界面交互体验的“葵花宝典”

​本次分享的是在界面设计中最长实用也最容易被忽略的十个原则&#xff0c;就是尼尔森十大可用性设计原则&#xff0c;这是十分基础且重要的原则。原则是死的&#xff0c;如何正确的结合到实际运用中才是关键。接下来我会通过对每一个原则的理解和现在移动端产品和结合进行分析…

window专业版激活

1、管理员权限进入命令行 2、安装密钥 slmgr /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX 3、设置kms服务器 slmgr /skms zh.us.to 4、查看是否激活 slmgr /ato 转载于:https://www.cnblogs.com/Edward-Yue/p/10942884.html

csv文件用什么打开_什么是CSV文件,如何打开它?

csv文件用什么打开A Comma Separated Values (CSV) file is a plain text file that contains a list of data. These files are often used for exchanging data between different applications. For example, databases and contact managers often support CSV files. 逗号…

Python连续攀升,其他的脚本语言去哪了?

Python在TIOBE排行榜排名连续攀升&#xff0c;它的优势掩盖了一个严肃的问题&#xff1a;其他的脚本语言去哪儿了?据2017年11月的TIOBE指数显示&#xff0c;其他语言(如Perl&#xff0c;PHP和Ruby)排名正在缓慢下滑。 不久之前&#xff0c;脚本语言风靡一时。动态类型语言不仅…

div水平垂直居中

水平垂直居中 效果 html <div class"m-box"><div class"m-temp"><div class"m-item">fsdafsfasdf</div><div class"m-item">fsdafsfasdf</div><div class"m-item">fsdafsfasdf&l…

禁用磁盘检查_如何在Windows上禁用“磁盘空间不足”警告

禁用磁盘检查Windows displays “Low Disk Space” notifications whenever any partition on your computer has less than 200 MB of space remaining. Here’s how to get rid of the notifications, even if you can’t free up the space. 只要计算机上任何分区的剩余空间…

facebook数据_Facebook的“下载数据”功能遗漏了很多

facebook数据Facebook lets you download a ZIP file with all of your data—in theory. Turns out a lot of information isn’t included. 从理论上讲&#xff0c;Facebook可让您下载包含所有数据的ZIP文件。 事实证明&#xff0c;其中不包含很多信息。 Here’s Nitasha Tik…

UmiJS CDN 部署之 publicPath

为什么80%的码农都做不了架构师&#xff1f;>>> 静态资源在非根目录或 cdn 这时&#xff0c;就需要配置 publicPath。至于 publicPath 是啥&#xff1f;具体看 webpack 文档&#xff0c;把他指向静态资源&#xff08;js、css、图片、字体等&#xff09;所在的路径。…

check corners_免费下载:将Mac样式的Hot Corners添加到Windows 10

check cornersWindows: Move your mouse to any corner to quickly see all your open windows, your desktop, or even start your screen saver. Windows&#xff1a;将鼠标移到任意角落可快速查看所有打开的窗口&#xff0c;桌面&#xff0c;甚至启动屏幕保护程序。 It’s c…

连续对焦 auto对焦_如何在Windows 10上使用对焦辅助(请勿打扰模式)

连续对焦 auto对焦Windows 10’s “Focus Assist” feature is a “Do Not Disturb” mode that hides notifications. Windows automatically activates it when you’re playing PC games or mirroring your display—and you can have Windows automatically activate it on…

spotify能免费下歌吗_Spotify免费版与高级版:值得升级吗?

spotify能免费下歌吗Spotify offers two tiers: a free, ad-supported plan and a $9.99 per month Premium plan. But what are the differences between the two and is it worth upgrading? Let’s find out. Spotify提供两个等级&#xff1a;免费的广告支持计划和每月9.99…

BZOJ4012 [HNOI2015]开店

BZOJ4012 [HNOI2015]开店 这道题因为太多人拿这个题卡$BZOJ$&#xff0c;于是成了权限题。。。 本蒟蒻表示没钱氪金。。。 无奈&#xff0c;拿出了洛谷&#xff1a;P3241 [HNOI2015]开店 还有$LOJ$&#xff1a;#2116. 「HNOI2015」开店 这里附上洛谷的题面&#xff1a; 题目描述…

ElasticSearch实战-入门

1.概述 今天接着《ElasticSearch实战&#xff0d;日志监控平台》一文来给大家分享后续的学习&#xff0c;在《ElasticSearch实战&#xff0d;日志监控平台》中给大家介绍一个日志监控平台的架构方案&#xff0c;接下来给大家分享如何去搭建部署这样一个平台&#xff0c;给大家做…

macos 版本_如何检查您使用的macOS版本

macos 版本Apple releases new versions of the macOS operating system about once per year. Here’s how to check which release of the macOS operating system is installed on your MacBook, iMac, Mac Mini, or Mac Pro. 苹果大约每年发布一次新版本的macOS操作系统。 …