<?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; 编程开发</title>
	<atom:link href="http://www.wuwx.net/categories/%e7%bc%96%e7%a8%8b%e5%bc%80%e5%8f%91/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wuwx.net</link>
	<description>严以律己·宽以待人·自强不息·知行合一</description>
	<lastBuildDate>Mon, 19 Dec 2011 00:27:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<atom:link rel='hub' href='http://www.wuwx.net/?pushpress=hub'/>
<cloud domain='www.wuwx.net' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
		<item>
		<title>Zend Server 5.5安装流程</title>
		<link>http://www.wuwx.net/archives/6048</link>
		<comments>http://www.wuwx.net/archives/6048#comments</comments>
		<pubDate>Fri, 04 Nov 2011 08:20:47 +0000</pubDate>
		<dc:creator>有颜色的猫</dc:creator>
				<category><![CDATA[编程开发]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Zend]]></category>

		<guid isPermaLink="false">http://www.wuwx.net/archives/6048</guid>
		<description><![CDATA[之后会给你安装好Apache，MySQL，PHP。不过安装后一直无法访问，Apache提示500错误，这是个囧事……]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.wuwx.net/wp-content/uploads/2011/11/image8.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.wuwx.net/wp-content/uploads/2011/11/image_thumb8.png" width="706" height="534" /></a></p>
<p><span id="more-6048"></span><a href="http://www.wuwx.net/wp-content/uploads/2011/11/image9.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.wuwx.net/wp-content/uploads/2011/11/image_thumb9.png" width="706" height="534" /></a>
<p><a href="http://www.wuwx.net/wp-content/uploads/2011/11/image10.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.wuwx.net/wp-content/uploads/2011/11/image_thumb10.png" width="706" height="534" /></a></p>
<p><a href="http://www.wuwx.net/wp-content/uploads/2011/11/image11.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.wuwx.net/wp-content/uploads/2011/11/image_thumb11.png" width="706" height="534" /></a></p>
<p><a href="http://www.wuwx.net/wp-content/uploads/2011/11/image12.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.wuwx.net/wp-content/uploads/2011/11/image_thumb12.png" width="706" height="534" /></a></p>
<p><a href="http://www.wuwx.net/wp-content/uploads/2011/11/image13.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.wuwx.net/wp-content/uploads/2011/11/image_thumb13.png" width="706" height="534" /></a></p>
<p><a href="http://www.wuwx.net/wp-content/uploads/2011/11/image14.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.wuwx.net/wp-content/uploads/2011/11/image_thumb14.png" width="706" height="534" /></a></p>
<p>之后会给你安装好Apache，MySQL，PHP。不过安装后一直无法访问，Apache提示500错误，这是个囧事……</p>
 <img src="http://www.wuwx.net/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=6048" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.wuwx.net/archives/6048/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend Studio 8安装流程</title>
		<link>http://www.wuwx.net/archives/6033</link>
		<comments>http://www.wuwx.net/archives/6033#comments</comments>
		<pubDate>Thu, 03 Nov 2011 00:02:27 +0000</pubDate>
		<dc:creator>有颜色的猫</dc:creator>
				<category><![CDATA[编程开发]]></category>
		<category><![CDATA[Editor]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Studio]]></category>
		<category><![CDATA[Zend]]></category>

		<guid isPermaLink="false">http://www.wuwx.net/archives/6033</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.wuwx.net/wp-content/uploads/2011/11/image.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.wuwx.net/wp-content/uploads/2011/11/image_thumb.png" width="509" height="398" /></a></p>
<p><span id="more-6033"></span><a href="http://www.wuwx.net/wp-content/uploads/2011/11/image1.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.wuwx.net/wp-content/uploads/2011/11/image_thumb1.png" width="509" height="398" /></a>
<p><a href="http://www.wuwx.net/wp-content/uploads/2011/11/image2.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.wuwx.net/wp-content/uploads/2011/11/image_thumb2.png" width="509" height="398" /></a></p>
<p><a href="http://www.wuwx.net/wp-content/uploads/2011/11/image3.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.wuwx.net/wp-content/uploads/2011/11/image_thumb3.png" width="509" height="398" /></a></p>
<p><a href="http://www.wuwx.net/wp-content/uploads/2011/11/image4.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.wuwx.net/wp-content/uploads/2011/11/image_thumb4.png" width="509" height="398" /></a></p>
<p><a href="http://www.wuwx.net/wp-content/uploads/2011/11/image5.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.wuwx.net/wp-content/uploads/2011/11/image_thumb5.png" width="509" height="398" /></a></p>
<p><a href="http://www.wuwx.net/wp-content/uploads/2011/11/image6.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.wuwx.net/wp-content/uploads/2011/11/image_thumb6.png" width="500" height="500" /></a></p>
<p><a href="http://www.wuwx.net/wp-content/uploads/2011/11/image7.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.wuwx.net/wp-content/uploads/2011/11/image_thumb7.png" width="462" height="312" /></a></p>
 <img src="http://www.wuwx.net/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=6033" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.wuwx.net/archives/6033/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使irb支持gem</title>
		<link>http://www.wuwx.net/archives/6016</link>
		<comments>http://www.wuwx.net/archives/6016#comments</comments>
		<pubDate>Mon, 31 Oct 2011 08:07:42 +0000</pubDate>
		<dc:creator>有颜色的猫</dc:creator>
				<category><![CDATA[编程开发]]></category>

		<guid isPermaLink="false">http://www.wuwx.net/archives/6016</guid>
		<description><![CDATA[如果直接使用irb命令，在使用gem的时候会出现NoMethodError: undefined method `gem' for main:Object的错误提示 此时可以使用irb –r rubygems来启动，则可解决 或者还有一种办法，在irb启动手，手动载入rubygems]]></description>
			<content:encoded><![CDATA[<p>如果直接使用irb命令，在使用gem的时候会出现NoMethodError: undefined method `gem' for main:Object的错误提示</p>
<p> <a href="http://www.wuwx.net/wp-content/uploads/2011/10/image.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.wuwx.net/wp-content/uploads/2011/10/image_thumb.png" width="427" height="82" /></a>
<p>此时可以使用irb –r rubygems来启动，则可解决</p>
<p><a href="http://www.wuwx.net/wp-content/uploads/2011/10/image1.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.wuwx.net/wp-content/uploads/2011/10/image_thumb1.png" width="289" height="46" /></a></p>
<p>或者还有一种办法，在irb启动手，手动载入rubygems</p>
<p><a href="http://www.wuwx.net/wp-content/uploads/2011/10/image2.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.wuwx.net/wp-content/uploads/2011/10/image_thumb2.png" width="285" height="81" /></a></p>
 <img src="http://www.wuwx.net/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=6016" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.wuwx.net/archives/6016/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails表单中文件字段部分的设计</title>
		<link>http://www.wuwx.net/archives/5998</link>
		<comments>http://www.wuwx.net/archives/5998#comments</comments>
		<pubDate>Tue, 13 Sep 2011 09:34:09 +0000</pubDate>
		<dc:creator>有颜色的猫</dc:creator>
				<category><![CDATA[编程开发]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[uploaded_file]]></category>

		<guid isPermaLink="false">http://www.wuwx.net/archives/5998</guid>
		<description><![CDATA[&#60;%= f.fields_for :attachments do &#124;fields&#124; %&#62;&#160; &#60;%= fields.file_field :uploaded_file %&#62;&#60;% end %&#62;]]></description>
			<content:encoded><![CDATA[<blockquote><p>&lt;%= f.fields_for :attachments do |fields| %&gt;<br />&nbsp; &lt;%= fields.file_field :uploaded_file %&gt;<br />&lt;% end %&gt;</p>
</blockquote>
 <img src="http://www.wuwx.net/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=5998" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.wuwx.net/archives/5998/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sun Java Directory Server向CentOS Directory Server迁移</title>
		<link>http://www.wuwx.net/archives/5991</link>
		<comments>http://www.wuwx.net/archives/5991#comments</comments>
		<pubDate>Mon, 25 Jul 2011 16:23:24 +0000</pubDate>
		<dc:creator>有颜色的猫</dc:creator>
				<category><![CDATA[编程开发]]></category>
		<category><![CDATA[Directory Server]]></category>

		<guid isPermaLink="false">http://www.wuwx.net/archives/5991</guid>
		<description><![CDATA[　　我目前维护着一台Sun-Fire-V890跑Sun Java Directory Server，出于对Linux的热爱以及对Sun的不感冒，做个技术测试，尝试下将Sun Java Directory Server迁移至CentOS Directory Server。 　　首先需要安装的就是CentOS Directory Server，使用yum命令轻松搞定 yum install centos-ds 　　安装完成之后，执行setup-ds.pl脚本来开始ds配置工作，配置过程按照提示一路下来还是比较简单的： [root@ldap tmp]# setup-ds.pl ==============================================================================This program will set up the CentOS Directory Server. It is recommended that you have "root" privilege to set up the software.Tips for using this&#160; program:&#160; - Press "Enter" to choose the default and go to [...]]]></description>
			<content:encoded><![CDATA[<p>　　我目前维护着一台Sun-Fire-V890跑Sun Java Directory Server，出于对Linux的热爱以及对Sun的不感冒，做个技术测试，尝试下将Sun Java Directory Server迁移至CentOS Directory Server。</p>
<p>　　首先需要安装的就是CentOS Directory Server，使用yum命令轻松搞定</p>
<blockquote><p>yum install centos-ds</p>
</blockquote>
<p>　　安装完成之后，执行setup-ds.pl脚本来开始ds配置工作，配置过程按照提示一路下来还是比较简单的：</p>
<blockquote><p>[root@ldap tmp]# <font color="#ff0000"><strong>setup-ds.pl</strong></font> </p>
<p>==============================================================================<br />This program will set up the CentOS Directory Server.</p>
<p>It is recommended that you have "root" privilege to set up the software.<br />Tips for using this&nbsp; program:<br />&nbsp; - Press "Enter" to choose the default and go to the next screen<br />&nbsp; - Type "Control-B" or the word "back" then "Enter" to go back to the previous screen<br />&nbsp; - Type "Control-C" to cancel the setup program</p>
<p>Would you like to continue with set up? [<font color="#ff0000">yes</font>]: </p>
<p>==============================================================================<br />BY SETTING UP AND USING THIS SOFTWARE YOU ARE CONSENTING TO BE BOUND BY<br />AND ARE BECOMING A PARTY TO THE AGREEMENT FOUND IN THE<br />LICENSE.TXT FILE. IF YOU DO NOT AGREE TO ALL OF THE TERMS<br />OF THIS AGREEMENT, PLEASE DO NOT SET UP OR USE THIS SOFTWARE.</p>
<p>Do you agree to the license terms? [no]: <font color="#ff0000"><strong>yes</strong></font></p>
<p>==============================================================================<br />Your system has been scanned for potential problems, missing patches,<br />etc.&nbsp; The following output is a report of the items found that need to<br />be addressed before running this software in a production<br />environment.</p>
<p>CentOS Directory Server system tuning analysis version 10-AUGUST-2007.</p>
<p>NOTICE : System is i686-unknown-linux2.6.18-238.12.1.el5PAE (4 processors).</p>
<p>NOTICE : The net.ipv4.tcp_keepalive_time is set to 7200000 milliseconds<br />(120 minutes).&nbsp; This may cause temporary server congestion from lost<br />client connections.</p>
<p>WARNING: There are only 1024 file descriptors (hard limit) available, which<br />limit the number of simultaneous connections.&nbsp; </p>
<p>WARNING: There are only 1024 file descriptors (soft limit) available, which<br />limit the number of simultaneous connections.&nbsp; </p>
<p>Would you like to continue? [no]: <font color="#ff0000"><strong>yes</strong></font></p>
<p>==============================================================================<br />Choose a setup type:</p>
<p>&nbsp;&nbsp; 1. Express<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Allows you to quickly set up the servers using the most<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; common options and pre-defined defaults. Useful for quick<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; evaluation of the products.</p>
<p>&nbsp;&nbsp; 2. Typical<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Allows you to specify common defaults and options.</p>
<p>&nbsp;&nbsp; 3. Custom<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Allows you to specify more advanced options. This is <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; recommended for experienced server administrators only.</p>
<p>To accept the default shown in brackets, press the Enter key.</p>
<p>Choose a setup type [<font color="#ff0000"><strong>2</strong></font>]: </p>
<p>==============================================================================<br />Enter the fully qualified domain name of the computer<br />on which you're setting up server software. Using the form<br />&lt;hostname&gt;.&lt;domainname&gt;<br />Example: eros.example.com.</p>
<p>To accept the default shown in brackets, press the Enter key.</p>
<p>Computer name [ldap..]: <font color="#ff0000"><strong>ldap</strong></font><br />The hostname ldap does not look like a<br />fully qualified host and domain name.<br />If you feel you have made a mistake,<br />please go back to this dialog and enter another name.</p>
<p>==============================================================================<br />The server must run as a specific user in a specific group.<br />It is strongly recommended that this user should have no privileges<br />on the computer (i.e. a non-root user).&nbsp; The setup procedure<br />will give this user/group some permissions in specific paths/files<br />to perform server-specific operations.</p>
<p>If you have not yet created a user and group for the server,<br />create this user and group using your native operating<br />system utilities.</p>
<p>System User [<font color="#ff0000">nobody</font>]: <br />System Group [<font color="#ff0000">nobody</font>]: </p>
<p>==============================================================================<br />The standard directory server network port number is 389.&nbsp; However, if<br />you are not logged as the superuser, or port 389 is in use, the<br />default value will be a random unused port number greater than 1024.<br />If you want to use port 389, make sure that you are logged in as the<br />superuser, that port 389 is not in use.</p>
<p>Directory server network port [<font color="#ff0000">389</font>]: </p>
<p>==============================================================================<br />Each instance of a directory server requires a unique identifier.<br />This identifier is used to name the various<br />instance specific files and directories in the file system,<br />as well as for other uses as a server instance identifier.</p>
<p>Directory server identifier [<font color="#ff0000">ldap</font>]: </p>
<p>==============================================================================<br />The suffix is the root of your directory tree.&nbsp; The suffix must be a valid DN.<br />It is recommended that you use the dc=domaincomponent suffix convention.<br />For example, if your domain is example.com,<br />you should use dc=example,dc=com for your suffix.<br />Setup will create this initial suffix for you,<br />but you may have more than one suffix.<br />Use the directory server utilities to create additional suffixes.</p>
<p>Suffix [dc=ldap]: <font color="#ff0000"><strong>o=neu</strong></font></p>
<p>==============================================================================<br />Certain directory server operations require an administrative user.<br />This user is referred to as the Directory Manager and typically has a<br />bind Distinguished Name (DN) of cn=Directory Manager.<br />You will also be prompted for the password for this user.&nbsp; The password must<br />be at least 8 characters long, and contain no spaces.<br />Press Control-B or type the word "back", then Enter to back up and start over.</p>
<p>Directory Manager DN [<font color="#ff0000">cn=Directory Manager</font>]: <br />Password: <br />Password (confirm): <br />Your new DS instance 'ldap' was successfully created.<br />Exiting . . .<br />Log file is '/tmp/setuplkbF34.log'</p>
<p>[root@ldap tmp]# </p>
</blockquote>
<p>　　至此，一个空的目录服务就配置完成，可以尝试下使用ldapsearch是否能搜到数据以确认目录服务是否正常启动：</p>
<blockquote><p>ps aux | grep </p>
<p><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.wuwx.net/wp-content/uploads/2011/07/image5.png" width="625" height="65"></p>
<p>ldapsearch -x -D "cn=Directory Manager" -W -b "o=neu"</p>
<p><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.wuwx.net/wp-content/uploads/2011/07/image6.png" width="567" height="148"></p>
</blockquote>
<p>　　随后可以使用导出的ldap数据开始进行迁移，如果你有自定义的schema可以存放在/etc/dirsrv/slapd-ldap/schema/目录下，按照数字编号编号好之后，系统就会自己载入了。</p>
<blockquote><p>mv 98user.ldif /etc/dirsrv/slapd-ldap/schema/</p>
</blockquote>
<p>　　使用ldif2db则可以将数据导入到CentOS Directory Server之中，不过一定要在离线情况下导入，否则会提示占用提示，此时只要将dirsrv服务停止即可：</p>
<blockquote><p>service dirsrv stop</p>
<p>ns-slapd ldif2db -D /etc/dirsrv/slapd-ldap -s "o=neu" -i /tmp/neu.ldif</p>
<p><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.wuwx.net/wp-content/uploads/2011/07/image7.png" width="545" height="52"></p>
</blockquote>
<p>　　成功之后，重新启动dirsrv服务，再使用ldapsearch确认下数据是否倒进去了，至此大功告成！</p>
 <img src="http://www.wuwx.net/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=5991" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.wuwx.net/archives/5991/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sybase 11.9.2备份失败解决办法</title>
		<link>http://www.wuwx.net/archives/5987</link>
		<comments>http://www.wuwx.net/archives/5987#comments</comments>
		<pubDate>Sun, 24 Jul 2011 04:04:14 +0000</pubDate>
		<dc:creator>有颜色的猫</dc:creator>
				<category><![CDATA[编程开发]]></category>
		<category><![CDATA[Sybase]]></category>

		<guid isPermaLink="false">http://www.wuwx.net/archives/5987</guid>
		<description><![CDATA[　　由于Sybase 11.9.2一个文件不能超过2G，如果数据库大小超过2G，就会出错，需要在备份时加入stripe。 dump database test to "/home/sybase/test.bak1" stripe on "/home/sybase/test.bak2" 　　同理，如果数据库大小超过4G，就需要分成3个备份文件了： dump database test to "/home/sybase/test.bak1" stripe on "/home/sybase/test.bak2" stripe on "/home/sybase/test.bak3" 　　当然，就算数据库大小不到2G，愿意把他们分成多个文件也是支持的。]]></description>
			<content:encoded><![CDATA[<p>　　由于Sybase 11.9.2一个文件不能超过2G，如果数据库大小超过2G，就会出错，需要在备份时加入stripe。</p>
<blockquote><p>dump database test to "/home/sybase/test.bak1" stripe on "/home/sybase/test.bak2"</p>
</blockquote>
<p>　　同理，如果数据库大小超过4G，就需要分成3个备份文件了：</p>
<blockquote><p>dump database test to "/home/sybase/test.bak1" stripe on "/home/sybase/test.bak2" stripe on "/home/sybase/test.bak3"</p>
</blockquote>
<p>　　当然，就算数据库大小不到2G，愿意把他们分成多个文件也是支持的。</p>
 <img src="http://www.wuwx.net/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=5987" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.wuwx.net/archives/5987/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS 5.6安装Sybase 11.9.2</title>
		<link>http://www.wuwx.net/archives/5986</link>
		<comments>http://www.wuwx.net/archives/5986#comments</comments>
		<pubDate>Sun, 24 Jul 2011 01:43:39 +0000</pubDate>
		<dc:creator>有颜色的猫</dc:creator>
				<category><![CDATA[编程开发]]></category>
		<category><![CDATA[Sybase]]></category>

		<guid isPermaLink="false">http://www.wuwx.net/archives/5986</guid>
		<description><![CDATA[　　首先要说明的是，Sybase 11.9.2并不适合安装在CentOS 5.6这样运行高版本glibc的Linux系统之上，在这样的系统中随时都有可能爆发让你崩溃的“段错误”，它应该运行在使用glibc2.2古老的Linux发行版，RedHat 7.2或许就是一个不错的选择。 　　安装sybase需要两个rpm包，直接装上就可以。 　　安装成功之后，首先需要编辑/etc/init.d/sybase文件，在公共部分加入export LD_POINTER_GUARD=0，同时系统会自动生成一个sybase用户，还需要编辑该用户目录下的.profile文件，在合适的位置同样加入export LD_POINTER_GUARD=0。 　　编辑/etc/hosts文件，在合适位置加入sybase的主机名 　　在图形环境下用sybase用户登录系统，运行srvbuild，出现图形化安装界面，这部分相对简单，选上数据库服务器和备份服务器之后，其他相关参数按提示填写即可，不过输入框相当没人性，输错不能删除，只能用鼠标选中之后输入覆盖。 　　这部分流程结束之后，将会启动Sybase和Backup Server，使用isql登录一下，如果成功，则没有什么问题了。]]></description>
			<content:encoded><![CDATA[<p>　　首先要说明的是，Sybase 11.9.2并不适合安装在CentOS 5.6这样运行高版本glibc的Linux系统之上，在这样的系统中随时都有可能爆发让你崩溃的“段错误”，它应该运行在使用glibc2.2古老的Linux发行版，RedHat 7.2或许就是一个不错的选择。</p>
<p>　　安装sybase需要两个rpm包，直接装上就可以。</p>
<p><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.wuwx.net/wp-content/uploads/2011/07/image.png" width="261" height="33"></p>
<p>　　安装成功之后，首先需要编辑/etc/init.d/sybase文件，在公共部分加入export LD_POINTER_GUARD=0，同时系统会自动生成一个sybase用户，还需要编辑该用户目录下的.profile文件，在合适的位置同样加入export LD_POINTER_GUARD=0。</p>
<p><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.wuwx.net/wp-content/uploads/2011/07/image1.png" width="598" height="123"></p>
<p><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.wuwx.net/wp-content/uploads/2011/07/image2.png" width="294" height="88"></p>
<p>　　编辑/etc/hosts文件，在合适位置加入sybase的主机名</p>
<p><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.wuwx.net/wp-content/uploads/2011/07/image3.png" width="340" height="30"></p>
<p>　　在图形环境下用sybase用户登录系统，运行srvbuild，出现图形化安装界面，这部分相对简单，选上数据库服务器和备份服务器之后，其他相关参数按提示填写即可，不过输入框相当没人性，输错不能删除，只能用鼠标选中之后输入覆盖。</p>
<p>　　这部分流程结束之后，将会启动Sybase和Backup Server，使用isql登录一下，如果成功，则没有什么问题了。</p>
<p><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.wuwx.net/wp-content/uploads/2011/07/image4.png" width="325" height="49"></p>
 <img src="http://www.wuwx.net/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=5986" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.wuwx.net/archives/5986/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP中APC缓存与Memcache缓存性能对比</title>
		<link>http://www.wuwx.net/archives/5952</link>
		<comments>http://www.wuwx.net/archives/5952#comments</comments>
		<pubDate>Wed, 26 Jan 2011 01:37:14 +0000</pubDate>
		<dc:creator>有颜色的猫</dc:creator>
				<category><![CDATA[编程开发]]></category>
		<category><![CDATA[APC]]></category>
		<category><![CDATA[Memcache]]></category>
		<category><![CDATA[性能]]></category>

		<guid isPermaLink="false">http://www.wuwx.net/?p=5952</guid>
		<description><![CDATA[　　一直很想当然地觉得APC的性能一定比Memcache强，毕竟APC是内部Cache，Memcache是外部Cache。听说Cache数量超过一定阀值的时候，APC的性能不如Memcache，心里自然不信，要自己测试一下才行！ 　　测试很简单，通过PHP读写一定次数的APC与Memcache，并对他们所消耗的系统时间进行对比，由于是同一台机器上同程序的比较，所以消耗的时间只是参考值，曲线应该是类似的。具体过程就不赘述了，重点看结果： 测试数据1：APC不同Cache数量百万请求消耗时间 Cache数量 百万请求消耗时间 10W 4.163 20W 6.504 30W 9.208 40W 11.1 50W 15.328 60W 16.139 70W 19.237 80W 21.22 测试数据2：APC保存不同Cache数量消耗时间 Cache数量 消耗时间 1W 0.035 10W 0.453 20W 1.391 30W 2.9 40W 5 50W 7.7 60W 11.228 70W 15.657 80W 20.218 测试数据3：Memcache不同Cache数量10W请求消耗时间 Cache数量 消耗时间 1W 3.2 2W 3 3W 3.1 4W 3.3 5W 4 [...]]]></description>
			<content:encoded><![CDATA[<p>　　一直很想当然地觉得APC的性能一定比Memcache强，毕竟APC是内部Cache，Memcache是外部Cache。听说Cache数量超过一定阀值的时候，APC的性能不如Memcache，心里自然不信，要自己测试一下才行！</p>
<p>　　测试很简单，通过PHP读写一定次数的APC与Memcache，并对他们所消耗的系统时间进行对比，由于是同一台机器上同程序的比较，所以消耗的时间只是参考值，曲线应该是类似的。具体过程就不赘述了，重点看结果：</p>
<h3>测试数据1：APC不同Cache数量百万请求消耗时间</h3>
<table style="border-collapse: collapse" border="0" cellspacing="0" cellpadding="0" width="230">
<colgroup>
<col style="width: 63pt; mso-width-source: userset; mso-width-alt: 2688" width="84">
<col style="width: 110pt; mso-width-source: userset; mso-width-alt: 4704" width="147">
<tbody>
<tr style="height: 14.25pt" height="19">
<td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: #ffff99; vertical-align: middle; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid" class="xl24" height="19" width="84"><font face="宋体">Cache数量</font></td>
<td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; background-color: #ffff99; vertical-align: middle; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid" class="xl24" width="146"><font face="宋体">百万请求消耗时间</font></td>
</tr>
<tr style="height: 14.25pt" height="19">
<td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: #ffff99; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" height="19"><font face="宋体">10W</font></td>
<td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; background-color: #ffff99; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" align="right"><font face="宋体">4.163</font></td>
</tr>
<tr style="height: 14.25pt" height="19">
<td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: #ffff99; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" height="19"><font face="宋体">20W</font></td>
<td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; background-color: #ffff99; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" align="right"><font face="宋体">6.504</font></td>
</tr>
<tr style="height: 14.25pt" height="19">
<td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: #ffff99; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" height="19"><font face="宋体">30W</font></td>
<td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; background-color: #ffff99; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" align="right"><font face="宋体">9.208</font></td>
</tr>
<tr style="height: 14.25pt" height="19">
<td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: #ffff99; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" height="19"><font face="宋体">40W</font></td>
<td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; background-color: #ffff99; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" align="right"><font face="宋体">11.1</font></td>
</tr>
<tr style="height: 14.25pt" height="19">
<td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: #ffff99; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" height="19"><font face="宋体">50W</font></td>
<td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; background-color: #ffff99; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" align="right"><font face="宋体">15.328</font></td>
</tr>
<tr style="height: 14.25pt" height="19">
<td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: #ffff99; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" height="19"><font face="宋体">60W</font></td>
<td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; background-color: #ffff99; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" align="right"><font face="宋体">16.139</font></td>
</tr>
<tr style="height: 14.25pt" height="19">
<td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: #ffff99; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" height="19"><font face="宋体">70W</font></td>
<td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; background-color: #ffff99; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" align="right"><font face="宋体">19.237</font></td>
</tr>
<tr style="height: 14.25pt" height="19">
<td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: #ffff99; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" height="19"><font face="宋体">80W</font></td>
<td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; background-color: #ffff99; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" align="right"><font face="宋体">21.22</font></td>
</tr>
</tbody>
</table>
<p><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; margin-left: 0px; border-top: 0px; margin-right: 0px; border-right: 0px; padding-top: 0px" title="clip_image002[4]" border="0" alt="clip_image002[4]" src="http://www.wuwx.net/wp-content/uploads/2011/01/clip_image0024.gif" width="345" height="212"></p>
<h3>测试数据2：APC保存不同Cache数量消耗时间</h3>
<table style="border-collapse: collapse" border="0" cellspacing="0" cellpadding="0" width="156">
<colgroup>
<col style="width: 63pt; mso-width-source: userset; mso-width-alt: 2688" width="84">
<col style="width: 54pt" width="72">
<tbody>
<tr style="height: 14.25pt" height="19">
<td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: #ffcc99; vertical-align: middle; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid" class="xl24" height="19" width="84"><font face="宋体">Cache数量</font></td>
<td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; background-color: #ffcc99; vertical-align: middle; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid" class="xl24" width="72"><font face="宋体">消耗时间</font></td>
</tr>
<tr style="height: 14.25pt" height="19">
<td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: #ffcc99; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" height="19"><font face="宋体">1W</font></td>
<td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; background-color: #ffcc99; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" align="right"><font face="宋体">0.035</font></td>
</tr>
<tr style="height: 14.25pt" height="19">
<td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: #ffcc99; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" height="19"><font face="宋体">10W</font></td>
<td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; background-color: #ffcc99; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" align="right"><font face="宋体">0.453</font></td>
</tr>
<tr style="height: 14.25pt" height="19">
<td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: #ffcc99; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" height="19"><font face="宋体">20W</font></td>
<td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; background-color: #ffcc99; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" align="right"><font face="宋体">1.391</font></td>
</tr>
<tr style="height: 14.25pt" height="19">
<td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: #ffcc99; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" height="19"><font face="宋体">30W</font></td>
<td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; background-color: #ffcc99; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" align="right"><font face="宋体">2.9</font></td>
</tr>
<tr style="height: 14.25pt" height="19">
<td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: #ffcc99; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" height="19"><font face="宋体">40W</font></td>
<td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; background-color: #ffcc99; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" align="right"><font face="宋体">5</font></td>
</tr>
<tr style="height: 14.25pt" height="19">
<td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: #ffcc99; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" height="19"><font face="宋体">50W</font></td>
<td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; background-color: #ffcc99; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" align="right"><font face="宋体">7.7</font></td>
</tr>
<tr style="height: 14.25pt" height="19">
<td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: #ffcc99; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" height="19"><font face="宋体">60W</font></td>
<td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; background-color: #ffcc99; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" align="right"><font face="宋体">11.228</font></td>
</tr>
<tr style="height: 14.25pt" height="19">
<td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: #ffcc99; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" height="19"><font face="宋体">70W</font></td>
<td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; background-color: #ffcc99; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" align="right"><font face="宋体">15.657</font></td>
</tr>
<tr style="height: 14.25pt" height="19">
<td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: #ffcc99; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" height="19"><font face="宋体">80W</font></td>
<td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; background-color: #ffcc99; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" align="right"><font face="宋体">20.218</font></td>
</tr>
</tbody>
</table>
<p><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="clip_image002[9]" border="0" alt="clip_image002[9]" src="http://www.wuwx.net/wp-content/uploads/2011/01/clip_image0029.gif" width="372" height="230"></p>
<h3>测试数据3：Memcache不同Cache数量10W请求消耗时间</h3>
<table style="border-collapse: collapse" border="0" cellspacing="0" cellpadding="0" width="156">
<colgroup>
<col style="width: 63pt; mso-width-source: userset; mso-width-alt: 2688" width="84">
<col style="width: 54pt" width="72">
<tbody>
<tr style="height: 14.25pt" height="19">
<td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: #ccffcc; vertical-align: middle; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid" class="xl24" height="19" width="84"><font face="宋体">Cache数量</font></td>
<td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; background-color: #ccffcc; vertical-align: middle; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid" class="xl24" width="72"><font face="宋体">消耗时间</font></td>
</tr>
<tr style="height: 14.25pt" height="19">
<td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: #ccffcc; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" height="19"><font face="宋体">1W</font></td>
<td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; background-color: #ccffcc; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" align="right"><font face="宋体">3.2</font></td>
</tr>
<tr style="height: 14.25pt" height="19">
<td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: #ccffcc; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" height="19"><font face="宋体">2W</font></td>
<td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; background-color: #ccffcc; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" align="right"><font face="宋体">3</font></td>
</tr>
<tr style="height: 14.25pt" height="19">
<td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: #ccffcc; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" height="19"><font face="宋体">3W</font></td>
<td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; background-color: #ccffcc; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" align="right"><font face="宋体">3.1</font></td>
</tr>
<tr style="height: 14.25pt" height="19">
<td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: #ccffcc; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" height="19"><font face="宋体">4W</font></td>
<td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; background-color: #ccffcc; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" align="right"><font face="宋体">3.3</font></td>
</tr>
<tr style="height: 14.25pt" height="19">
<td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: #ccffcc; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" height="19"><font face="宋体">5W</font></td>
<td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; background-color: #ccffcc; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" align="right"><font face="宋体">4</font></td>
</tr>
<tr style="height: 14.25pt" height="19">
<td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: #ccffcc; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" height="19"><font face="宋体">6W</font></td>
<td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; background-color: #ccffcc; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" align="right"><font face="宋体">4</font></td>
</tr>
<tr style="height: 14.25pt" height="19">
<td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: #ccffcc; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" height="19"><font face="宋体">7W</font></td>
<td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; background-color: #ccffcc; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" align="right"><font face="宋体">3.2</font></td>
</tr>
<tr style="height: 14.25pt" height="19">
<td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: #ccffcc; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" height="19"><font face="宋体">8W</font></td>
<td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; background-color: #ccffcc; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" align="right"><font face="宋体">3.1</font></td>
</tr>
<tr style="height: 14.25pt" height="19">
<td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: #ccffcc; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" height="19"><font face="宋体">9W</font></td>
<td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; background-color: #ccffcc; vertical-align: middle; border-top: medium none; border-right: windowtext 0.5pt solid" class="xl24" align="right"><font face="宋体">3.1</font></td>
</tr>
</tbody>
</table>
<p><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="clip_image002[6]" border="0" alt="clip_image002[6]" src="http://www.wuwx.net/wp-content/uploads/2011/01/clip_image0026.gif" width="378" height="227"></p>
<p>　　测试结果很容易看出来，当Cache数量巨大的时候，APC的时间消耗为O(N)，而Memcache的时间消耗为O(1)，虽然APC为共享内存，访问速度快，但是一旦APC的Cache数量过大，遍历所产生的时间消耗要大于Memcache中间层所产生的时间消耗，就会出现APC的性能不如Memcache的效果。</p>
 <img src="http://www.wuwx.net/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=5952" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.wuwx.net/archives/5952/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>配置StatusNet为单用户模式</title>
		<link>http://www.wuwx.net/archives/5905</link>
		<comments>http://www.wuwx.net/archives/5905#comments</comments>
		<pubDate>Tue, 30 Mar 2010 06:00:23 +0000</pubDate>
		<dc:creator>有颜色的猫</dc:creator>
				<category><![CDATA[编程开发]]></category>
		<category><![CDATA[StatusNet]]></category>

		<guid isPermaLink="false">http://www.wuwx.net/archives/5905</guid>
		<description><![CDATA[　　猫言猫语是我个人使用的小型微博，他的地址是：http://www.wuwx.net/status/，StatusNet默认是多用户模式的，需要看我自己发布的消息的话，则需通过：http://www.wuwx.net/status/wuwx这样形式的链接，也就是说需要在站点地址后加上我的用户名才能到我的个人页，一直想找个什么方式可以直接通过访问http://www.wuwx.net/status/就直接是我自己的页面。 　　刚开始以为要实现这个功能很复杂，看了下代码之后发现在StatusNet中直接有一个配置开关可以直接修改，直接在config.php中加一句话： $config['singleuser']['enabled'] = true; 　　StatusNet是不是非常地好用、方便呢，快一起来搭建吧！]]></description>
			<content:encoded><![CDATA[<p>　　<a href="http://www.wuwx.net/status/">猫言猫语</a>是我个人使用的小型微博，他的地址是：<a href="http://www.wuwx.net/status/">http://www.wuwx.net/status/</a>，<a href="http://www.status.net/" target="_blank">StatusNet</a>默认是多用户模式的，需要看我自己发布的消息的话，则需通过：<a href="http://www.wuwx.net/status/wuwx">http://www.wuwx.net/status/wuwx</a>这样形式的链接，也就是说需要在站点地址后加上我的用户名才能到我的个人页，一直想找个什么方式可以直接通过访问<a href="http://www.wuwx.net/status/">http://www.wuwx.net/status/</a>就直接是我自己的页面。</p>
<p>　　刚开始以为要实现这个功能很复杂，看了下代码之后发现在<a href="http://www.status.net/" target="_blank">StatusNet</a>中直接有一个配置开关可以直接修改，直接在config.php中加一句话：</p>
<blockquote><p>$config['singleuser']['enabled'] = true;</p>
</blockquote>
<p>　　<a href="http://www.status.net/" target="_blank">StatusNet</a>是不是非常地好用、方便呢，快一起来搭建吧！</p>
 <img src="http://www.wuwx.net/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=5905" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.wuwx.net/archives/5905/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>在StatusNet中快速设置GoogleAnalytics</title>
		<link>http://www.wuwx.net/archives/5903</link>
		<comments>http://www.wuwx.net/archives/5903#comments</comments>
		<pubDate>Mon, 29 Mar 2010 15:23:50 +0000</pubDate>
		<dc:creator>有颜色的猫</dc:creator>
				<category><![CDATA[编程开发]]></category>
		<category><![CDATA[Analytics]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[StatusNet]]></category>

		<guid isPermaLink="false">http://www.wuwx.net/archives/5903</guid>
		<description><![CDATA[　　这篇有点像GoogleAdsense的姐妹篇哈，一篇讲的是广告，一篇讲的是统计，方法同样的简单，在config.php中增加如下配置信息，这个code的值用你的跟踪代码的值去替换他： addPlugin('GoogleAnalytics', array(&#160;&#160;&#160; 'code' =&#62; 'UA-440814-12')); 　　然后就可以保存退出，StatusNet会根据你的配置信息，自动在页面需要的位置加上GoogleAnalytics的，等上几个小时，你就可以在你的GoogleAnalytics帐户中看到StatusNet相关统计了！]]></description>
			<content:encoded><![CDATA[<p>　　这篇有点像GoogleAdsense的姐妹篇哈，一篇讲的是广告，一篇讲的是统计，方法同样的简单，在config.php中增加如下配置信息，这个code的值用你的跟踪代码的值去替换他：</p>
<blockquote><p>addPlugin('GoogleAnalytics', array(<br />&nbsp;&nbsp;&nbsp; 'code' =&gt; 'UA-440814-12'<br />));</p>
</blockquote>
<p>　　然后就可以保存退出，StatusNet会根据你的配置信息，自动在页面需要的位置加上GoogleAnalytics的，等上几个小时，你就可以在你的GoogleAnalytics帐户中看到StatusNet相关统计了！</p>
 <img src="http://www.wuwx.net/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=5903" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.wuwx.net/archives/5903/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

