<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>猫言猫语 &#187; install-apc</title> <atom:link href="http://imcat.in/tag/install-apc/feed/" rel="self" type="application/rss+xml" /><link>http://imcat.in</link> <description>人的头脑太复杂,时间过得久,有时候连自己也被自己骗了,记下来才是最真实的……</description> <lastBuildDate>Mon, 23 Aug 2010 13:54:00 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator> <item><title>安装apc为php加速</title><link>http://imcat.in/apc-for-php-installed-to-speed-up/</link> <comments>http://imcat.in/apc-for-php-installed-to-speed-up/#comments</comments> <pubDate>Mon, 20 Jul 2009 22:30:20 +0000</pubDate> <dc:creator>Cat.</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[APC]]></category> <category><![CDATA[install-apc]]></category> <category><![CDATA[php]]></category><guid isPermaLink="false">http://imcat.in/%e5%ae%89%e8%a3%85apc%e4%b8%baphp%e5%8a%a0%e9%80%9f/</guid> <description><![CDATA[Alternative PHP Cache（APC）是 PHP 的一个免费公开的优化代码缓存。它用来提供免费，公开并且强健的架构来缓存和优化 PHP 的中间代码。 主要是加速PHP.. WordPress是一个占用内存的大户,而且执行效率比较低.. 我安装了APC后,VPS的整体内存降了30M左右吧.. 下面是安装方法: wget http://pecl.php.net/get/APC-3.1.2.tgz tar zxvf APC-3.1.2.tgz cd APC-3.1.2/ /usr/local/php/bin/phpize ./configure --enable-apc --enable-apc-mmap --with-php-config=/usr/local/php/bin/php-config make make install php.ini 查找extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/" 下面添加extension = "apc.so" 配置php.ini 末尾加入 apc.enabled = 1 apc.cache_by_default = on apc.shm_segments = 1 apc.shm_size = 32 apc.ttl = 600 apc.user_ttl = 600 apc.num_files_hint = [...]]]></description> <content:encoded><![CDATA[<p>Alternative PHP Cache（APC）是 PHP 的一个免费公开的优化代码缓存。它用来提供免费，公开并且强健的架构来缓存和优化 PHP 的中间代码。<br /> 主要是加速PHP..<br /> WordPress是一个占用内存的大户,而且执行效率比较低..<br /> 我安装了APC后,VPS的整体内存降了30M左右吧..<br /> 下面是安装方法:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">wget http://pecl.php.net/get/APC-3.1.2.tgz<br /> tar zxvf APC-3.1.2.tgz<br /> cd APC-3.1.2/<br /> /usr/local/php/bin/phpize<br /> ./configure --enable-apc --enable-apc-mmap --with-php-config=/usr/local/php/bin/php-config<br /> make<br /> make install</div></div><p><span id="more-1027"></span><br /> php.ini<br /> 查找extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/"<br /> 下面添加extension = "apc.so"</p><p>配置php.ini 末尾加入<br /> apc.enabled = 1<br /> apc.cache_by_default = on<br /> apc.shm_segments = 1<br /> apc.shm_size = 32<br /> apc.ttl = 600<br /> apc.user_ttl = 600<br /> apc.num_files_hint = 0<br /> apc.write_lock = On</p><p>然后重启服务器就OK</p> ]]></content:encoded> <wfw:commentRss>http://imcat.in/apc-for-php-installed-to-speed-up/feed/</wfw:commentRss> <slash:comments>12</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using memcached
Page Caching using memcached
Database Caching 1/4 queries in 0.002 seconds using memcached
Object Caching 425/426 objects using memcached

Served from: imcat.in @ 2010-09-08 12:45:25 -->