<?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; databases</title>
	<atom:link href="http://blog.thematice.com/html/ycategory/mysqldb/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.thematice.com</link>
	<description>发现自己的脑袋不好使了，用blog来记录真的很好用。</description>
	<lastBuildDate>Thu, 09 Feb 2012 13:33:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Oracle安装-Linux内核参数-共享内存信号量设置</title>
		<link>http://blog.thematice.com/html/y2010/1074_oracle%e5%ae%89%e8%a3%85-linux%e5%86%85%e6%a0%b8%e5%8f%82%e6%95%b0-%e5%85%b1%e4%ba%ab%e5%86%85%e5%ad%98%e4%bf%a1%e5%8f%b7%e9%87%8f%e8%ae%be%e7%bd%ae.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=oracle%25e5%25ae%2589%25e8%25a3%2585-linux%25e5%2586%2585%25e6%25a0%25b8%25e5%258f%2582%25e6%2595%25b0-%25e5%2585%25b1%25e4%25ba%25ab%25e5%2586%2585%25e5%25ad%2598%25e4%25bf%25a1%25e5%258f%25b7%25e9%2587%258f%25e8%25ae%25be%25e7%25bd%25ae</link>
		<comments>http://blog.thematice.com/html/y2010/1074_oracle%e5%ae%89%e8%a3%85-linux%e5%86%85%e6%a0%b8%e5%8f%82%e6%95%b0-%e5%85%b1%e4%ba%ab%e5%86%85%e5%ad%98%e4%bf%a1%e5%8f%b7%e9%87%8f%e8%ae%be%e7%bd%ae.html#comments</comments>
		<pubDate>Mon, 20 Dec 2010 09:39:57 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[databases]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=1074</guid>
		<description><![CDATA[Oracle数据库在linux系统上的安装过程中，涉及到设置linux内核参数； 这些内核参数究竟代表什么含义，如何调整这些参数？ 共享内存： 可以通过ipcs -lm命令查看目前系统共享内存的参数限制： # ipcs -lm —— Shared Memory Limits ——– max number of segments = 4096 max seg size (kbytes) = 1048576 max total shared memory (pages) = 2097152 min seg size (bytes) = 1 这里涉及到3个于共享内存相关的参数：SHMMAX，SHMMNI，SHMALL SHMMAX 含义：单个共享内存段最大字节数 设置：比SGA略大 查看：cat /proc/sys/kernel/shmmax $ cat /proc/sys/kernel/shmmax 1073741824 修改： sysctl -w kernel.shmmax=1073741824 echo “kernel.shmmax=1073741824″ &#62;&#62; [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/1074_oracle%e5%ae%89%e8%a3%85-linux%e5%86%85%e6%a0%b8%e5%8f%82%e6%95%b0-%e5%85%b1%e4%ba%ab%e5%86%85%e5%ad%98%e4%bf%a1%e5%8f%b7%e9%87%8f%e8%ae%be%e7%bd%ae.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Proxy快速实现读写分离以及负载均衡</title>
		<link>http://blog.thematice.com/html/y2010/1098_mysql-%e7%bc%96%e8%af%91%e5%ae%89%e8%a3%85%e5%8f%8a%e4%bc%98%e5%8c%96.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=mysql-%25e7%25bc%2596%25e8%25af%2591%25e5%25ae%2589%25e8%25a3%2585%25e5%258f%258a%25e4%25bc%2598%25e5%258c%2596</link>
		<comments>http://blog.thematice.com/html/y2010/1098_mysql-%e7%bc%96%e8%af%91%e5%ae%89%e8%a3%85%e5%8f%8a%e4%bc%98%e5%8c%96.html#comments</comments>
		<pubDate>Sun, 18 Jul 2010 15:55:29 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[databases]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/html/y2010/07/18/1098/mysql-%e7%bc%96%e8%af%91%e5%ae%89%e8%a3%85%e5%8f%8a%e4%bc%98%e5%8c%96.html</guid>
		<description><![CDATA[周三, 2008/04/23 &#8211; 14:37 — yejr 作/译者：叶金荣（Email: ），来源：http://imysql.cn，转载请注明作/译者和出处，并且不能用于商业用途，违者必究。 1. 安装 下载已经编译好的安装包，或者预编译安装包均可，在这里，使用预编译版本。 [@s1.yejr.com ~]# tar zxf mysql-proxy-0.6.0-linux-rhas4-x86.tar.gz [@s1.yejr.com ~]# cd mysql-proxy-0.6.0-linux-rhas4-x86 #可以看到有2个目录 [@s1.yejr.com mysql-proxy-0.6.0-linux-rhas4-x86]# ls sbin share [@s1.yejr.com mysql-proxy-0.6.0-linux-rhas4-x86]# mv sbin/mysql-proxy /usr/local/sbin/ [@s1.yejr.com mysql-proxy-0.6.0-linux-rhas4-x86]# ls share mysql-proxy tutorial-constants.lua tutorial-packets.lua tutorial-rewrite.lua tutorial-warnings.lua tutorial-basic.lua tutorial-inject.lua tutorial-query-time.lua tutorial-states.lua #将lua脚本放到/usr/local/share下，以备他用 [@s1.yejr.com mysql-proxy-0.6.0-linux-rhas4-x86]# mv share/mysql-proxy /usr/local/share/ #删除符号连接等垃圾代码 [@s1.yejr.com mysql-proxy-0.6.0-linux-rhas4-x86]# strip /usr/local/sbin/mysql-proxy [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/1098_mysql-%e7%bc%96%e8%af%91%e5%ae%89%e8%a3%85%e5%8f%8a%e4%bc%98%e5%8c%96.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mysql编译安装参数优化</title>
		<link>http://blog.thematice.com/html/y2010/1076_mysql%e7%bc%96%e8%af%91%e5%ae%89%e8%a3%85%e5%8f%82%e6%95%b0%e4%bc%98%e5%8c%96.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=mysql%25e7%25bc%2596%25e8%25af%2591%25e5%25ae%2589%25e8%25a3%2585%25e5%258f%2582%25e6%2595%25b0%25e4%25bc%2598%25e5%258c%2596</link>
		<comments>http://blog.thematice.com/html/y2010/1076_mysql%e7%bc%96%e8%af%91%e5%ae%89%e8%a3%85%e5%8f%82%e6%95%b0%e4%bc%98%e5%8c%96.html#comments</comments>
		<pubDate>Fri, 18 Jun 2010 15:45:16 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[configure]]></category>
		<category><![CDATA[databases]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=1076</guid>
		<description><![CDATA[关键字: mysql compile 1. -static 13% &#8211;with-client-ldflags=-all-static &#8211;with-mysqld-ldflags=-all-static 静态链接提高13%性能 2. -pgcc 1% CFLAGS=”-O3 -mpentiumpro -mstack-align-double” CXX=gcc \ CXXFLAGS=”-O3 -mpentiumpro -mstack-align-double \ -felide-constructors -fno-exceptions -fno-rtti” 如果是Inter处理器，使用pgcc提高1%性能 3. Unix Socket 7.5% &#8211;with-unix-socket-path=/usr/local/mysql/tmp/mysql.sock 使用unix套接字链接提高7.5%性能，所以在windows下mysql性能肯定不如unix下面 4. &#8211;enable-assembler 允许使用汇编模式(优化性能) 下面是总体的编译文件 编译代码 CFLAGS=”-O3&#8243; CXX=gcc CXXFLAGS=”-O3 -felide-constructors \ -fno-exceptions -fno-rtti -fomit-frame-pointer -ffixed-ebp” ./configure \ &#8211;prefix=/usr/local/mysql &#8211;enable-assembler \ &#8211;with-mysqld-ldflags=-all-static &#8211;with-client-ldflags=-all-static &#8211;with-unix-socket-path=/usr/local/mysql/tmp/mysql.sock &#8211;with-charset=utf8 &#8211;with-collation=utf8_general_ci [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/1076_mysql%e7%bc%96%e8%af%91%e5%ae%89%e8%a3%85%e5%8f%82%e6%95%b0%e4%bc%98%e5%8c%96.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>linux下用源代码编译mysql（完整步骤）</title>
		<link>http://blog.thematice.com/html/y2010/1092_linux%e4%b8%8b%e7%94%a8%e6%ba%90%e4%bb%a3%e7%a0%81%e7%bc%96%e8%af%91mysql%ef%bc%88%e5%ae%8c%e6%95%b4%e6%ad%a5%e9%aa%a4%ef%bc%89.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=linux%25e4%25b8%258b%25e7%2594%25a8%25e6%25ba%2590%25e4%25bb%25a3%25e7%25a0%2581%25e7%25bc%2596%25e8%25af%2591mysql%25ef%25bc%2588%25e5%25ae%258c%25e6%2595%25b4%25e6%25ad%25a5%25e9%25aa%25a4%25ef%25bc%2589</link>
		<comments>http://blog.thematice.com/html/y2010/1092_linux%e4%b8%8b%e7%94%a8%e6%ba%90%e4%bb%a3%e7%a0%81%e7%bc%96%e8%af%91mysql%ef%bc%88%e5%ae%8c%e6%95%b4%e6%ad%a5%e9%aa%a4%ef%bc%89.html#comments</comments>
		<pubDate>Tue, 18 May 2010 15:47:03 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[configure]]></category>
		<category><![CDATA[databases]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=1092</guid>
		<description><![CDATA[linux下用源代码编译apache+mysql+php应用环境linux下用源代码编译mysql（基本步骤） linux下用源代码编译apache linux下用源代码编译php mysql部分。mysql源代码的版本是：mysql-5.1.29-rc.tar.gz 建立mysql运行的用户和组：为了安全起见，myslq需要以特定的用户身份去运行。 首先，我们需要查看系统中现有的用户及用户组： 注意：本文中所有的命令均以root身份运行（既shell提示符为#），如果对linux系统不熟悉，在回车前一定要仔细核对。本文不对命令进行过多的讨论，除非有必要，仅给出需要的命令及参数解释。 grep -in mysql /etc/passwd /etc/group 执行上述命令，-i参数不区分大小写，如果你没有看到包含mysql的信息，则说明你的系统当前 可能 没有配置mysql，下面我们需要为mysql运行创建用户及组。如果你看到结果返回 mysql 的字样，说明mysql运行的帐户信息己建立好了，那么可以跳过下面这一步。 &#60;!&#8211;more&#8211;&#62; groupadd -r -p mysql5 mysql useradd -c “mysql daemon” -r -s /bin/false -d /var/lib/mysql -g mysql -p mysql5 mysql 上述参数解释如下（两个命令参数意义类似）： -c “mysql daemon” mysql用户的描述，如果描述包含多个字符，可以使用引号 -r 将 用户/组 设置为 系统用户/组 -s /bin/false 指定登录外壳，/bin/false为禁止用户从 终端/图形界面 登录 -d /var/lib/mysql，设置用户的主目录，/var/lib/mysql是默认设置，你也可以指定其他位置。 -g [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/1092_linux%e4%b8%8b%e7%94%a8%e6%ba%90%e4%bb%a3%e7%a0%81%e7%bc%96%e8%af%91mysql%ef%bc%88%e5%ae%8c%e6%95%b4%e6%ad%a5%e9%aa%a4%ef%bc%89.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UCenter Home 数据表结构</title>
		<link>http://blog.thematice.com/html/y2010/1070_ucenter-home-%e6%95%b0%e6%8d%ae%e8%a1%a8%e7%bb%93%e6%9e%84.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ucenter-home-%25e6%2595%25b0%25e6%258d%25ae%25e8%25a1%25a8%25e7%25bb%2593%25e6%259e%2584</link>
		<comments>http://blog.thematice.com/html/y2010/1070_ucenter-home-%e6%95%b0%e6%8d%ae%e8%a1%a8%e7%bb%93%e6%9e%84.html#comments</comments>
		<pubDate>Tue, 30 Mar 2010 10:53:37 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[databases]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/html/y2010/03/30/1070/ucenter-home-%e6%95%b0%e6%8d%ae%e8%a1%a8%e7%bb%93%e6%9e%84.html</guid>
		<description><![CDATA[UCenter Home 数据表结构 2008-08-23 11:53 &#8211; &#8211; ucenter home 数据库 &#8211; &#8211; 数据库: uchome &#8211; &#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8211; &#8211; “广告”表 &#8211; 序号,是否激活,标题,位置,代码,类型 uchome_ad adid smallint(6) unsigned NOT NULL auto_increment, available tinyint(1) NOT NULL default &#8217;1&#8242;, title varchar(50) NOT NULL default ”, pagetype varchar(20) NOT NULL default ”, adcode text NOT NULL, system tinyint(1) NOT NULL [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/1070_ucenter-home-%e6%95%b0%e6%8d%ae%e8%a1%a8%e7%bb%93%e6%9e%84.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Redis, Memcached, Tokyo Tyrant and MySQL comparision</title>
		<link>http://blog.thematice.com/html/y2010/944_redis-memcached-tokyo-tyrant-and-mysql-comparision.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=redis-memcached-tokyo-tyrant-and-mysql-comparision</link>
		<comments>http://blog.thematice.com/html/y2010/944_redis-memcached-tokyo-tyrant-and-mysql-comparision.html#comments</comments>
		<pubDate>Thu, 14 Jan 2010 06:11:44 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[databases]]></category>
		<category><![CDATA[DBM]]></category>
		<category><![CDATA[memcache]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[memcached]]></category>
		<category><![CDATA[MySQL comparision]]></category>
		<category><![CDATA[Redis]]></category>
		<category><![CDATA[Tokyo Tyrant]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=944</guid>
		<description><![CDATA[I wanted to compare the following DBs, NoSQLs and caching solutions for speed and connections. Tested the following Redis Memcached Tokyo Tyrant / Tokyo Cabinet MySQL 5.1.40 (MyISAM) MySQL 5.1.40 (with Innodb Plugin 1.0.4), compiled into source of MySQL My test had the following criteria 2 client boxes All clients connecting to the server using [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/944_redis-memcached-tokyo-tyrant-and-mysql-comparision.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>linux大于2T的磁盘使用GPT分区方式</title>
		<link>http://blog.thematice.com/html/y2009/936_linux%e5%a4%a7%e4%ba%8e2t%e7%9a%84%e7%a3%81%e7%9b%98%e4%bd%bf%e7%94%a8gpt%e5%88%86%e5%8c%ba%e6%96%b9%e5%bc%8f.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=linux%25e5%25a4%25a7%25e4%25ba%258e2t%25e7%259a%2584%25e7%25a3%2581%25e7%259b%2598%25e4%25bd%25bf%25e7%2594%25a8gpt%25e5%2588%2586%25e5%258c%25ba%25e6%2596%25b9%25e5%25bc%258f</link>
		<comments>http://blog.thematice.com/html/y2009/936_linux%e5%a4%a7%e4%ba%8e2t%e7%9a%84%e7%a3%81%e7%9b%98%e4%bd%bf%e7%94%a8gpt%e5%88%86%e5%8c%ba%e6%96%b9%e5%bc%8f.html#comments</comments>
		<pubDate>Mon, 28 Dec 2009 13:02:29 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[databases]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux tools]]></category>
		<category><![CDATA[GPT]]></category>
		<category><![CDATA[MBR]]></category>
		<category><![CDATA[parted]]></category>
		<category><![CDATA[分区]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=936</guid>
		<description><![CDATA[GUID Partion Table 一种由基于 Itanium 计算机中的可扩展固件接口 (EFI) 使用的磁盘分区架构。与主启动记录 (MBR) 分区方法相比，GPT 具有更多的优点，因为它允许每个磁盘有多达 128 个分区，支持高达 18 千兆兆字节的卷大小，允许将主磁盘分区表和备份磁盘分区表用于冗余，还支持唯一的磁盘和分区 ID (GUID)。 与支持最大卷为 2 TB (terabytes) 并且每个磁盘最多有 4 个主分区（或 3 个主分区，1 个扩展分区和无限制的逻辑驱动器）的主启动记录 (MBR) 磁盘分区的样式相比，GUID 分区表 (GPT) 磁盘分区样式支持最大卷为 18 EB (exabytes) 并且每磁盘最多有 128 个分区。与 MBR 分区的磁盘不同，至关重要的平台操作数据位于分区，而不是位于非分区或隐藏扇区。另外，GPT 分区磁盘有多余的主要及备份分区表来提高分区数据结构的完整性。 所以在超过2TB时,我不能使用交互很好的Fdisk命令,只能磁盘转化为GPT格式。由于GPT格式的磁盘相当于原来MBR磁盘中原来保留4个 partition table的4*16个字节只留第一个16个字节，其它的类似于扩展分区，真正的partition table在512字节之后，所以对GPT磁盘表来讲没有四个主分区的限制。 对GPT磁盘分区表进行操作，我们要使用parted命令。其实parted功能很强大，它可以象fdisk一样既可用命令行也可以用于交互式。 下面我们就来实际操作吧，在提示符下输入parted就会进入交互式模式 # parted /dev/sdb GNU Parted 1.8.1 Using /dev/sdb [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2009/936_linux%e5%a4%a7%e4%ba%8e2t%e7%9a%84%e7%a3%81%e7%9b%98%e4%bd%bf%e7%94%a8gpt%e5%88%86%e5%8c%ba%e6%96%b9%e5%bc%8f.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[转] memcache分析调试 &#8211; [php]</title>
		<link>http://blog.thematice.com/html/y2009/709_%e8%bd%ac-memcache%e5%88%86%e6%9e%90%e8%b0%83%e8%af%95-php.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e8%25bd%25ac-memcache%25e5%2588%2586%25e6%259e%2590%25e8%25b0%2583%25e8%25af%2595-php</link>
		<comments>http://blog.thematice.com/html/y2009/709_%e8%bd%ac-memcache%e5%88%86%e6%9e%90%e8%b0%83%e8%af%95-php.html#comments</comments>
		<pubDate>Mon, 28 Sep 2009 17:08:55 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[databases]]></category>
		<category><![CDATA[DBM]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[memcached]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=709</guid>
		<description><![CDATA[1.关于本文档 本文档所有的分析都是在1.2版本之上,偶尔会提到比较1.1版本.其他版本没有阅读. 一个星期时间的工作,不可能对memcache有很深刻的分析.文档本身的目的在于为以后的研究准备一个总结资料.刚接触memcache时,对其设计分布式的思路感到十分欣喜,因为在中间层以极小的代价实现简单分布式无疑成为一些要求不是很高的分布式应用的一个很好的设计思路,这个特性决定memcache本身在分布式应用中,单个结点之间是Server相互独立,不会存在同级之间的通信.一个结点拒绝访问,如果没有相应的冗余策略,将导致该结点的数据丢失.同时,memcache的Server结点对数据的存储操作都是在内存中完成,而memcache对内存分配和回收采用了曾在SunOS实现的分页机制,预分配一个大内存(默认是 slabs_clsid; assert((it->it_flags &#038; ITEM_LINKED) == 0); assert(it != heads[it->slabs_clsid]); assert(it != tails[it->slabs_clsid]); assert(it->refcount == 0); it->slabs_clsid = 0; it->it_flags &#124;= ITEM_SLABBED; slabs_free(it, ntotal); } 做一个轮流存储的机制使用预分配的内存,这样的好处是其他地方不需要做任何修改就可以了,当然你可以在源代码中加入上面的代码,并将它们放在一个自定义的宏后面. 3. 加速比. 加速比,也即事件的处理效率.是否可以修改libevent的事件处理效率,需要研究.如果内存空间很大,可以将freeconn的数值调大,增加预分配的conn内存大小. 是否可以将memcache做成多线程处理,但在处理多线程数据同步是个问题. 如果有时间,愿意来试试这个策略. 4. 安全性能. memcache还存在一个比较显著的问题,那就是其安全性能.只要了解memcache监听的端口,对于能够使用分布式memcache进行数据通信的网络环境的机器,都可以通过memcache协议于memcache服务器进行通信,获取或种植数据.不能保证种植进内存里的数据不会被别有心意的人再利用.也不能保证服务器的内存不被漫天遍地的垃圾数据所堆积,造成命中极低. memcache的设计理念在一个轻字,如果对每次Client的通讯需要校验身份,那么恐怕memcache也就达不到其想要的效果了.存在解决办法缓解这个问题,一般而言,需要使用memcache服务的机器,可以在Server维持一张红色列表.这张表上的机器便可以获取服务.很显然,memcache并非任意Client都能访问,只有信任的机器访问,那么为什么不将这些信任的机器放在一个/etc/mem_passwd下呢. 还有,memcached走udp时,很大几率接受到upd时,都会使服务死掉,特别是set,add,replace时,这个问题需要去考究一下.不过没有时间了. 4.memcache测试分析 服务器端memcache在命令行运行的参数: 引用 # memcached –d –m 512 –l *.*.*.* -u ** -f 1.00001 –n 16 –c [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2009/709_%e8%bd%ac-memcache%e5%88%86%e6%9e%90%e8%b0%83%e8%af%95-php.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>备忘,mysql的filesort</title>
		<link>http://blog.thematice.com/html/y2009/710_%e5%a4%87%e5%bf%98mysql%e7%9a%84filesort.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e5%25a4%2587%25e5%25bf%2598mysql%25e7%259a%2584filesort</link>
		<comments>http://blog.thematice.com/html/y2009/710_%e5%a4%87%e5%bf%98mysql%e7%9a%84filesort.html#comments</comments>
		<pubDate>Mon, 21 Sep 2009 03:21:40 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[databases]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[explain]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=710</guid>
		<description><![CDATA[恩,又一个知识忘记了..看来要常做备忘才行… explain 显示的filesort不是说”因为数据太大,内存不够,然后在文件中排序”..filesort的意思是”排序没有使用到索引“,跟文件(file)没啥关系.. 当然了,sort这个不会是错的,算法是用quicksort,也就是快速排序]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2009/710_%e5%a4%87%e5%bf%98mysql%e7%9a%84filesort.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>五款常用mysql slow log分析工具的比较</title>
		<link>http://blog.thematice.com/html/y2008/112_five-commonly-used-analytical-tool-mysql-slow-log-comparison.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=five-commonly-used-analytical-tool-mysql-slow-log-comparison</link>
		<comments>http://blog.thematice.com/html/y2008/112_five-commonly-used-analytical-tool-mysql-slow-log-comparison.html#comments</comments>
		<pubDate>Fri, 17 Oct 2008 04:24:23 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[databases]]></category>

		<guid isPermaLink="false">http://www.gotohand.cn/?p=112</guid>
		<description><![CDATA[mysql slow log 是用来记录执行时间较长(超过long_query_time秒)的sql的一种日志工具. 启用 slow log 有两种启用方式: 1, 在my.cnf 里 通过 log-slow-queries[=file_name] 2, 在mysqld进程启动时,指定&#8211;log-slow-queries[=file_name]选项 比较的五款常用工具 mysqldumpslow, mysqlsla, myprofi, mysql-explain-slow-log, mysqllogfilter mysqldumpslow, mysql官方提供的慢查询日志分析工具. 输出图表如下: &#160; 主要功能是, 统计不同慢sql的 出现次数(Count),  执行最长时间(Time),  累计总耗费时间(Time),  等待锁的时间(Lock),  发送给客户端的行总数(Rows),  扫描的行总数(Rows),  用户以及sql语句本身(抽象了一下格式, 比如 limit 1, 20 用 limit N,N 表示). mysqlsla, hackmysql.com推出的一款日志分析工具(该网站还维护了 mysqlreport, mysqlidxchk 等比较实用的mysql工具) 整体来说, 功能非常强大. 数据报表,非常有利于分析慢查询的原因, 包括执行频率, 数据量, 查询消耗等. &#160; 格式说明如下: 总查询次数 [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2008/112_five-commonly-used-analytical-tool-mysql-slow-log-comparison.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>No space left on device的分析及解决</title>
		<link>http://blog.thematice.com/html/y2008/111_no-space-left-on-device-analysis-and-solutions.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=no-space-left-on-device-analysis-and-solutions</link>
		<comments>http://blog.thematice.com/html/y2008/111_no-space-left-on-device-analysis-and-solutions.html#comments</comments>
		<pubDate>Thu, 16 Oct 2008 02:59:14 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[databases]]></category>

		<guid isPermaLink="false">http://www.gotohand.cn/?p=111</guid>
		<description><![CDATA[看到这个错误，第一个反应是磁盘空间满了；但 df 一看，每个分区的空间都还富余的很。 从 munin 的监控图表上看 Filesystem usage 也很平稳，但下面的 Inode usage 就有问题了， 其中一个分区的 usage 已经到了100%。赶紧跑到服务器上 df -i 检查，果然是 Inode 耗尽。 原来这个分区是用来扔各种日志和临时文件的，其中有某个程序产生的临时文件又小又多， 又没有进行定时回滚，造成在磁盘空间耗尽之前文件系统的 Inode 就被用光了。 Linux/Unix like OS 的文件系统中每个目录树中的节点并不是像 Windows 那样直接包含文件的具体信息，而只包含了文件名和 Inode number 。通过 Inode number 所找到对应于文件名的 Inode 节点中才真正记录了文件的大小/物理地址/所有者/访问权限/时间戳/被硬链接的次数等实际的 metadata 。因此你可以在 Linux 系统中通过硬链接( hard link ) 的方式给某个文件创建无数个位于不同目录下的文件名，而实际的文件数据只需要一份拷贝。 但也正因为这种文件系统的结构，当你在 Linux 中进行 IO 操作的时候，需要的资源除了磁盘空间以外，还要有剩余的 Inode 才行。缺省情况下， Linux 在系统安装过程中按照1个 [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2008/111_no-space-left-on-device-analysis-and-solutions.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[转载][收录]Linux应用心得(2008/02/04版)</title>
		<link>http://blog.thematice.com/html/y2008/110_reprint-indexed-linux-application-experience-20080204-version.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=reprint-indexed-linux-application-experience-20080204-version</link>
		<comments>http://blog.thematice.com/html/y2008/110_reprint-indexed-linux-application-experience-20080204-version.html#comments</comments>
		<pubDate>Fri, 26 Sep 2008 01:27:56 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[databases]]></category>

		<guid isPermaLink="false">http://www.gotohand.cn/?p=110</guid>
		<description><![CDATA[Linux应用心得 写这篇文章是为了方便自己，也同时为了方便他人。 目前的开源软件盛行，很多的README文档都是以英文的形式出现，很多懒人不愿意去读此类的文章，所以遇到问题也不会知道怎么去解决。 在这之前，《linux宝库》的站长陈绪先生的《linux一句话》已经概括得很经典，而我追求的是linux中的FAQ形式，只要你有心，没有解决不了的问题。 &#160; Q00001:当修改/etc/fstab文件时，因为修改错误而无法启动，这时进入的急救模式只是可读状态，该怎么解决此类问题？A00001:使用mount重载系统分区，使其挂载为可写状态，然后修改/etc/fstab文件，具体挂载方式为： fdisk -lmount -o mount,rw /dev/hda1 /mnt Q00002:有时候换了环境或者网络，发现sendmail与sm_client邮件发送系统启动很慢，虽然能启动成功，但是启动的速度实在让人受不了，怎么sendmail和sm_client服务解决启动慢的问题？A00002:类似这样的应该是/etc/hosts文件出现解析问题，不排除其他文件有问题，这里/etc/hosts文件的原始内容如下： # Do not remove the following line, or various programs# that require network functionality will fail.127.0.0.1 localhost localhost.localdomain Q00003:在有些播放器上，有时候发现播放列表上的字符是乱码，解决播放列表乱码的问题是否有统一的格式呢？A00003:估计各个播放器的字符编码方式不一样，目前很难有统一的字符编码方式来处理这类问题，比如常见的xmms可以采用加载windows字体的方式获取汉字编码解决，具体方法把WINDOWS目录Fonts目录下的simsun这种字体拷贝到LINUX的这个目录下/usr/share/fonts/zh_CN/TrueType，然后重起字体服务，fedora8版本以下解决方案如下： service xfs restartfc-cache -f -v 如果没有xfs服务，请先安装xfs： yum install xfs xfs-devel 再用右键单击xmms播放工具的任何地方会看到一个”选项”,然后选择”功能设定”选择”fonts”然后设置刚才考过来的字体，注销系统再播放机即可正常使用，对于高版本的xmms记得设置字符编码。对于音质比较好的amarok，需要进行下载一个软件包，具体方法如下：安装必要的软件 &#62;sudo apt-get install python-mutagen or &#62;yum install python-mutagen -y 把存在NTFS分区上的音乐文件软连接到ext2或ext3分区， &#62;ln -s [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2008/110_reprint-indexed-linux-application-experience-20080204-version.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Smartmontools&#8212;硬盘检测工具</title>
		<link>http://blog.thematice.com/html/y2008/108_hard-drive-testing-tools-smartmontools.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=hard-drive-testing-tools-smartmontools</link>
		<comments>http://blog.thematice.com/html/y2008/108_hard-drive-testing-tools-smartmontools.html#comments</comments>
		<pubDate>Tue, 26 Aug 2008 15:23:27 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[databases]]></category>

		<guid isPermaLink="false">http://www.gotohand.cn/?p=108</guid>
		<description><![CDATA[1 什么是Smartmontools？ Smartmontools是一种硬盘检测工具，通过控制和管理硬盘的SMART（Self Monitoring Analysis and Reporting Technology，自动检测分析及报告技术）技术来实现的，SMART技术可以对硬盘的磁头单元、盘片电机驱动系统、硬盘内部电路以及盘片表面介质材料等进行监测，当SMART监测并分析出硬盘可能出现问题时会及时向用户报警以避免计算机数据受损失。SMART技术必须在主板支持的前提下才能发生作用，而且 SMART技术也不能保证能预报所有可能发生的硬盘故障。SMART(SFF-8035i) 是硬盘生产商们建立的一个工业标准，这个标准就是在硬盘上保存一个跟执行情况，可靠程度，读找错误率等属性的表格。所有属性都有一个1byte(大小范围1-253)的标准化值，还包含另一个1byte的关键阶段值，如果属性表格内某个数据接近小于或达到关键阶段值，表明硬盘工作不正常了。 2.1 Smartmontools的使用 1、启动监控进程 # /etc/init.d/smartd start 启动 smartd： [ 确定 ] 2、检查硬盘是否支持SMART 1993年以后出厂的硬盘基本上都支持SMART技术，使用如下命令可以来查看： # smartctl -i /dev/hdb smartctl version 5.33 [i686-turbo-linux-gnu] Copyright (C) 2002-4 Bruce Allen Home page is http://smartmontools.sourceforge.net/ === START OF INFORMATION SECTION === Device Model: ST3160212A Serial Number: 5LS2EDKN Firmware Version: 3.AAE [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2008/108_hard-drive-testing-tools-smartmontools.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>varnish初步安装</title>
		<link>http://blog.thematice.com/html/y2008/100_the-initial-installation-of-varnish.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=the-initial-installation-of-varnish</link>
		<comments>http://blog.thematice.com/html/y2008/100_the-initial-installation-of-varnish.html#comments</comments>
		<pubDate>Mon, 18 Aug 2008 01:54:22 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[databases]]></category>

		<guid isPermaLink="false">http://www.gotohand.cn/?p=100</guid>
		<description><![CDATA[下载程序： # wget http://nchc.dl.sourceforge.net/sourceforge/varnish/varnish-1.1.1.tar.gz 解压安装： #tar zxvf /usr/local/src/varnish-1.1.1.tar.gz #cd varnish-1.1.1 #./autogen.sh #./configure –prefix=/usr/local/varnish &#8211;enable-debugging-symbols &#8211;enable-developer-warnings &#8211;enable-dependency-tracking &#8211;enable-extra-warnings 创建缓存目录： # mkdir -p /cache/varnish &#38;&#38; chown -R nobody:nobody /cache 启动文件： # cd /usr/local/varnish/sbin #vi start.sh ××××××× #!/bin/sh # file: start.sh date -u /usr/local/varnish/sbin/varnishd -a 127.0.0.1:80 -s file,/cache/varnish,1024m -f /usr/local/varnish/sbin/vg.vcl.default -p thread_pool_max=1500 -p thread_pools=5 -p listen_depth=512 -p client_http11=on [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2008/100_the-initial-installation-of-varnish.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>linux下编译安装php的参数 (有点问题)</title>
		<link>http://blog.thematice.com/html/y2008/98_compile-php-under-linux-installation-parameters-a-problem.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=compile-php-under-linux-installation-parameters-a-problem</link>
		<comments>http://blog.thematice.com/html/y2008/98_compile-php-under-linux-installation-parameters-a-problem.html#comments</comments>
		<pubDate>Thu, 07 Aug 2008 01:26:45 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[databases]]></category>

		<guid isPermaLink="false">http://www.gotohand.cn/?p=98</guid>
		<description><![CDATA[Fast-CGI: ./configure &#8211;prefix=/usr/local/php &#8211;enable-fastcgi &#8211;enable-force-cgi-redirect &#8211;with-config-file-path=/etc &#8211;with-zlib &#8211;with-mysql &#8211;with-xml &#8211;with-gd &#8211;enable-gd-native-ttf &#8211;enable-gd-jis-conv &#8211;with-freetype-dir &#8211;with-jpeg-dir &#8211;with-png-dir &#8211;enable-mbstring PHP4-Server: ./configure &#8211;prefix=/usr/local/php &#8211;with-apxs2=/usr/local/apache2/bin/apxs &#8211;with-mysql &#8211;with-config-file-path=/etc &#8211;with-gd &#8211;enable-gd-native-ttf &#8211;enable-gd-jis-conv &#8211;with-freetype-dir &#8211;with-jpeg-dir &#8211;with-png-dir &#8211;with-zlib &#8211;enable-xml &#8211;enable-mbstring PHP4-Max: ./configure &#8211;prefix=/usr/local/php &#8211;with-apxs2=/usr/local/apache/bin/apxs &#8211;mandir=/usr/share/man &#8211;with-mysql=/usr/local/mysql &#8211;with-config-file-path=/usr/local/php/etc &#8211;with-openssl=/usr/local/openssl-0.9.7e &#8211;with-gd &#8211;enable-gd-native-ttf &#8211;enable-gd-jis-conv &#8211;with-freetype-dir &#8211;with-jpeg-dir &#8211;with-png-dir &#8211;with-zlib &#8211;with-bz2 &#8211;with-inifile &#8211;with-hyperwave &#8211;enable-xml &#8211;enable-track-vars &#8211;enable-dba &#8211;enable-dbase &#8211;enable-filepro &#8211;enable-ftp [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2008/98_compile-php-under-linux-installation-parameters-a-problem.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux下编译PHP时遇到的安装libmcrypt库的问题</title>
		<link>http://blog.thematice.com/html/y2008/97_compiling-php-under-linux-installation-encountered-the-problem-of-library-libmcrypt.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=compiling-php-under-linux-installation-encountered-the-problem-of-library-libmcrypt</link>
		<comments>http://blog.thematice.com/html/y2008/97_compiling-php-under-linux-installation-encountered-the-problem-of-library-libmcrypt.html#comments</comments>
		<pubDate>Thu, 07 Aug 2008 01:23:02 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[databases]]></category>

		<guid isPermaLink="false">http://www.gotohand.cn/?p=97</guid>
		<description><![CDATA[./configure –prefix=/usr/local/php-5.2.3 –enable-module=so –with-mysql=/usr/local/mysql-5.1.20 –with-apxs2=/usr/local/apache-2.2.4/bin/apxs –enable-mbstring –with-mcrypt 通过以上命令配置PHP时，遇到错误，总说找不到libmcrypt。由于这服务器是个裸机，很多必须的库都没装，必须一个一个的手动安装，可libmcrypt这个库我的确装过了。重试n遍，无解。在网上找了半天，终于在phpbuilder.com的一个maillist里发现一个哥们儿遇到的问题跟我差不多，按照他的方法做了一下，居然解决了。原文在这：http://www.phpbuilder.com/lists/php-install/2004032/0090.php 做为一个懒人，我就不逐句翻译了，摘抄解决办法如下： ——————————- the solution ——————————- Then I visited http://mcrypt.hellug.gr/mcrypt/index.html an learned that I have to install not only libmcrypt but also mcrypt and libmhash. Here is the to do: libmcrytp: ———– download libmcrypt-xxx.tar.gz create the following directory: / usr / local / libmcrypt copy the libmcrypt-xxx.tar.gz into [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2008/97_compiling-php-under-linux-installation-encountered-the-problem-of-library-libmcrypt.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>LVM的配置数据</title>
		<link>http://blog.thematice.com/html/y2008/96_lvm-configuration-data.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=lvm-configuration-data</link>
		<comments>http://blog.thematice.com/html/y2008/96_lvm-configuration-data.html#comments</comments>
		<pubDate>Wed, 06 Aug 2008 08:23:22 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[databases]]></category>

		<guid isPermaLink="false">http://www.gotohand.cn/?p=96</guid>
		<description><![CDATA[卷组描述区(VGDA)、卷组状态区（VGSA）和逻辑卷控制块（LVCB）构成了LVM的配置数据 1.VGDA:卷组描述区。位于所有硬盘起始的部分，VGDA记录着卷组中每个逻辑卷（LV)的逻辑分区（LP）与物理分区（PP）的映射关系。 主要用于更新ODM。 VGSA:卷组状态区。主要用于描述VG中PV和PP的状态信息，在激活一卷组时，VGSA可以确定卷组中那些物理分区（PP）是无效的（或陈旧的），哪些物理卷已丢失，进而确定卷组中的物理卷是否可用。 LVCB:逻辑卷控制块。位于所有LV的起始部分，包含与LV有关的信息，如LV 的大小、类型、最后更新时间等。 卷组中的每个PV至少都有一个VGDA，VGDA能对该PV进行自我描述，每个LVM命令都可以同步卷组中所有PV的VGDA，从而使卷组中每个PV的VGDA都保持相同的时间戳，如果其中一个PV错误导致无法运行，则就无法更新同步VGDA。 在把一个硬盘变成物理卷时（使用mkdev命令）就在这个硬盘的开始部分保留一个存放VGDA的空间，当把这个物理卷加入到一个卷组中时（使用mkvg或extendvg）才将该卷组的信息写进这个物理卷的VGDA中。当把一个PV从所属VG中删除时（使用reducevg命令），同时从这个PV的VGDA中清除该卷组的信息。 描述LVM的构成信息不会存放在一个地方，还会存在于系统的各个地方，AIX的大多数系统配置都会存放在ODM数据库中，所以已配置的VG，LV和PV的信息都会保存在ODM数据库中，所以当导入（import)一个卷组时，就会把要导入卷组的VGDA信息保存在ODM数据库中，相反，导出（export)一个卷组时，就会把这个卷组的VGDA信息从ODM数据库中删除。 关于PVID：PVID是PV的物理标识符，这个PVID是系统随机生成的，而且是可变的。硬盘在未被定义为PV之前是没有PVID号的。当系统进行cfgmgr后，系统就会为硬盘分配一个名字和PVID号。如果想手工清除PVID号用chdev -l hdiskn -a pv=clear.重新生成pvid号用cfgmgr或chdev -l hdiskn -a pv=yes. ODM:ODM数据库用与描述物理设备相同的方式描述VG和LV，它影响VGDA、VGSA、LVCB中的信息。LV在ODM中处于Defined状态，而物理设备则处于Available状态。 在/etc/vg目录中保存有VGID， 可用#lqueryvg –p hdiskn –At查询VGID 可用#lqueryvg [–g VGID&#124;-p PVname] [-NsFncDaLPAt]查询PVID 可用#getlvcb –AT hdn查询LVCB信息 可用 #ipl_varyon –i显示系统中的PV，PVID及PV所属的VG的VGID 2.当VG中有两个PV，且两个PV互为镜像时，如一个PV上的VGID毁坏了， 可用#chvg -Q n vgname命令恢复， 然后用#varyonvg vgname将VG挂在系统上即可。 3.当ODM中的有关VG的信息毁坏时， 可用#varyoffvg vgname， #exportvgvgname， #importvg –y vgname –f hdiskn #varyonvg vgname命令重建ODM中的VGDA项。 4.当PV上的VGDA毁坏时(此问题通常是由于从系统中卸载一块PV而未事先将 其从VG中卸载)，应先找出丢失PV的PVID，然后将丢失的PV重新加入ODM [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2008/96_lvm-configuration-data.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>关于linux做nat出现“table full”的终极解决办法。</title>
		<link>http://blog.thematice.com/html/y2008/94_nat-on-linux-so-there-table-full-the-ultimate-solution.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=nat-on-linux-so-there-table-full-the-ultimate-solution</link>
		<comments>http://blog.thematice.com/html/y2008/94_nat-on-linux-so-there-table-full-the-ultimate-solution.html#comments</comments>
		<pubDate>Fri, 01 Aug 2008 07:52:41 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[databases]]></category>

		<guid isPermaLink="false">http://www.gotohand.cn/?p=94</guid>
		<description><![CDATA[出现此问题的原因： The default value held by this entry varies heavily depending on how much memory you have. On 128 MB of RAM you will get 8192 possible entries, and at 256 MB of RAM, you will get 16376 entries. You can read and set your settings through the /proc/sys/net/ipv4/ip_conntrack_max setting. 中文： 连接跟踪表能容纳多少记 录是被一个变量控制的，它可由内核中的ip- sysctl函数设置。默认值取决于你的内存大小，128MB可以包含8192条目录，256MB是16376条。你也可以在 /proc/sys/net/ipv4/ip_conntrack_max里查看、设置。 [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2008/94_nat-on-linux-so-there-table-full-the-ultimate-solution.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>卸载rpm包遭遇error: specifies multiple packages</title>
		<link>http://blog.thematice.com/html/y2008/93_uninstall-rpm-package-encountered-error-specifies-multiple-packages.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=uninstall-rpm-package-encountered-error-specifies-multiple-packages</link>
		<comments>http://blog.thematice.com/html/y2008/93_uninstall-rpm-package-encountered-error-specifies-multiple-packages.html#comments</comments>
		<pubDate>Thu, 31 Jul 2008 05:49:11 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[databases]]></category>

		<guid isPermaLink="false">http://www.gotohand.cn/?p=93</guid>
		<description><![CDATA[准备在Redhat Linux系统上安装MySQL5.1，先卸载自带的低版本MySQL，结果不知怎么搞的，同一个package出现了两次，版本也都是一样的： rpm -qa &#124; grep mysql mysqlclient10-3.23.58-4.RHEL4.1 mysql-4.1.20-2.RHEL4.1 mysql-4.1.20-2.RHEL4.1 mysqlclient10-3.23.58-4.RHEL4.1 尝试卸载： rpm -e mysqlclient10-3.23.58-4.RHEL4.1 error: “mysqlclient10-3.23.58-4.RHEL4.1&#8243; specifies multiple packages 通过man rpm，发现–allmatches应该可以解决这个问题： –allmatches Remove all versions of the package which match PACKAGE_NAME. Normally an error is issued if PACKAGE_NAME matches multiple packages. rpm -e &#8211;allmatches mysqlclient10-3.23.58-4.RHEL4.1 rpm -e &#8211;allmatches mysql-4.1.20-2.RHEL4.1 warning: /etc/my.cnf saved as /etc/my.cnf.rpmsave [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2008/93_uninstall-rpm-package-encountered-error-specifies-multiple-packages.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>命令行CURL教程</title>
		<link>http://blog.thematice.com/html/y2008/91_curl-command-line-tutorial.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=curl-command-line-tutorial</link>
		<comments>http://blog.thematice.com/html/y2008/91_curl-command-line-tutorial.html#comments</comments>
		<pubDate>Thu, 10 Jul 2008 02:20:01 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[databases]]></category>

		<guid isPermaLink="false">http://www.gotohand.cn/?p=91</guid>
		<description><![CDATA[作者: nickwolfe@CCF CURL? 嗯，说来话长了~~~~ 这东西现在已经是苹果机上内置的命令行工具之一了，可见其魅力之一斑 1) 二话不说，先从这里开始吧！ curl http://www.yahoo.com 回车之后，www.yahoo.com 的html就稀里哗啦地显示在屏幕上了~~~~~ 2) 嗯，要想把读过来页面存下来，是不是要这样呢？ curl http://www.yahoo.com &#62; page.html 当然可以，但不用这么麻烦的！ 用curl的内置option就好，存下http的结果，用这个option: -o curl -o page.html http://www.yahoo.com 这样，你就可以看到屏幕上出现一个下载页面进度指示。等进展到100%，自然就OK咯 3) 什么什么？！访问不到？肯定是你的proxy没有设定了。 使用curl的时候，用这个option可以指定http访问所使用的proxy服务器及其端口： -x curl -x 123.45.67.89:1080 -o page.html http://www.yahoo.com 4) 访问有些网站的时候比较讨厌，他使用cookie来记录session信息。 像IE/NN这样的浏览器，当然可以轻易处理cookie信息，但我们的curl呢？&#8230;.. 我们来学习这个option: -D &#60;&#8211; 这个是把http的response里面的cookie信息存到一个特别的文件中去 curl -x 123.45.67.89:1080 -o page.html -D cookie0001.txt http://www.yahoo.com 这样，当页面被存到page.html的同时，cookie信息也被存到了cookie0001.txt里面了 5） 那么，下一次访问的时候，如何继续使用上次留下的cookie信息呢？要知道，很多网站都是靠监视你的cookie信息， 来判断你是不是不按规矩访问他们的网站的。 这次我们使用这个option来把上次的cookie信息追加到http [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2008/91_curl-command-line-tutorial.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

