<?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>Fri, 21 Oct 2011 17:55:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</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>
<h2  class="related_post_title">暧味日志</h2><ul class="related_post"><li><a href="http://imcat.in/suhosin-protect-your-php/" title="Suhosin &#8211; 保护你的PHP">Suhosin &#8211; 保护你的PHP</a> (10)</li><li><a href="http://imcat.in/the-latest-linux-under-nginx-mysql-php-memcache-vsftpd-one-click-installation-package/" title="最新Linux下的Nginx+MySQL+PHP+Memcache+Vsftpd一键安装包">最新Linux下的Nginx+MySQL+PHP+Memcache+Vsftpd一键安装包</a> (36)</li><li><a href="http://imcat.in/linux-tar-exclude/" title="Linux命令tar压缩排除指定目录的方法">Linux命令tar压缩排除指定目录的方法</a> (0)</li><li><a href="http://imcat.in/iptables-limit-number-connections-same-ip/" title="iptables限制同一IP连接数">iptables限制同一IP连接数</a> (3)</li><li><a href="http://imcat.in/linux-replace-the-file-name-space/" title="Linux下替换文件名中的空格">Linux下替换文件名中的空格</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://imcat.in/apc-for-php-installed-to-speed-up/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>

