<?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>稀饭的国度</title>
	<atom:link href="http://blog.thematice.com/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.thematice.com</link>
	<description>发现自己的脑袋不好使了，用blog来记录真的很好用。</description>
	<lastBuildDate>Wed, 01 Feb 2012 05:33:00 +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>【软件内置后门致系统管理员密码泄露】</title>
		<link>http://blog.thematice.com/html/y2012/02/01/1132/%e3%80%90%e8%bd%af%e4%bb%b6%e5%86%85%e7%bd%ae%e5%90%8e%e9%97%a8%e8%87%b4%e7%b3%bb%e7%bb%9f%e7%ae%a1%e7%90%86%e5%91%98%e5%af%86%e7%a0%81%e6%b3%84%e9%9c%b2%e3%80%91.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e3%2580%2590%25e8%25bd%25af%25e4%25bb%25b6%25e5%2586%2585%25e7%25bd%25ae%25e5%2590%258e%25e9%2597%25a8%25e8%2587%25b4%25e7%25b3%25bb%25e7%25bb%259f%25e7%25ae%25a1%25e7%2590%2586%25e5%2591%2598%25e5%25af%2586%25e7%25a0%2581%25e6%25b3%2584%25e9%259c%25b2%25e3%2580%2591</link>
		<comments>http://blog.thematice.com/html/y2012/02/01/1132/%e3%80%90%e8%bd%af%e4%bb%b6%e5%86%85%e7%bd%ae%e5%90%8e%e9%97%a8%e8%87%b4%e7%b3%bb%e7%bb%9f%e7%ae%a1%e7%90%86%e5%91%98%e5%af%86%e7%a0%81%e6%b3%84%e9%9c%b2%e3%80%91.html#comments</comments>
		<pubDate>Wed, 01 Feb 2012 05:33:00 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[web-hack]]></category>
		<category><![CDATA[安全]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=1132</guid>
		<description><![CDATA[多家安全厂商验证，部分汉化版putty、WinSCP、SSH Secure等的确存在后门，可致服务器系统管理员密码泄露，被完全控制linux服务器。建议管理员立刻卸载这些汉化版软件，并尽快修改密码。若较多企业服务器管理权限被盗，其后果不亚于CSDN事件！. http://www.oschina.net/news/25229/wordpress-vulnerability 鞋衫各式名品专卖]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2012/02/01/1132/%e3%80%90%e8%bd%af%e4%bb%b6%e5%86%85%e7%bd%ae%e5%90%8e%e9%97%a8%e8%87%b4%e7%b3%bb%e7%bb%9f%e7%ae%a1%e7%90%86%e5%91%98%e5%af%86%e7%a0%81%e6%b3%84%e9%9c%b2%e3%80%91.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php-fpm下使用eaccelerator产生的内存问题</title>
		<link>http://blog.thematice.com/html/y2010/12/20/1073/php-fpm%e4%b8%8b%e4%bd%bf%e7%94%a8eaccelerator%e4%ba%a7%e7%94%9f%e7%9a%84%e5%86%85%e5%ad%98%e9%97%ae%e9%a2%98.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=php-fpm%25e4%25b8%258b%25e4%25bd%25bf%25e7%2594%25a8eaccelerator%25e4%25ba%25a7%25e7%2594%259f%25e7%259a%2584%25e5%2586%2585%25e5%25ad%2598%25e9%2597%25ae%25e9%25a2%2598</link>
		<comments>http://blog.thematice.com/html/y2010/12/20/1073/php-fpm%e4%b8%8b%e4%bd%bf%e7%94%a8eaccelerator%e4%ba%a7%e7%94%9f%e7%9a%84%e5%86%85%e5%ad%98%e9%97%ae%e9%a2%98.html#comments</comments>
		<pubDate>Mon, 20 Dec 2010 09:40:14 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[HTTP]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[eaccelerator]]></category>
		<category><![CDATA[mem]]></category>
		<category><![CDATA[php-cgi]]></category>
		<category><![CDATA[php-fpm]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=1073</guid>
		<description><![CDATA[使用EA或者类似的OP CODE加速器已经是搭建PHP环境的默认选项了 但是在使用nginx的环境内 会需要使用fastcgi方式来运行php 这种情况下.EA的内存占用可能会和你在APACHE下使用EA不同 由于APACHE调用PHP的方式是模块方式的 所有PHP是位于同一个进程下面的 所以所有PHP模块调用的EA是同一个的. 内存只会占用shm_size大小. APACHE进程间共享这同一个EA 也就是如果你在ea的配置下面写了64M.则只会占用整个系统的64M 而如果用fastcgi模式 特别是php-fpm 每个php都是独立进程 导致每个PHP进程下面都会独立分配EA的内存 则总的内存占用量 = shm_size * php进程数 如果你还用64M的话.开启20个PHP进程就意味着你用掉了1280M内存. 虽然目前只是分配到虚拟内存 但是对于大型网站的话, 不久之后就会占用到了这么大量的内存. 目前具体如何解决还没有找到 但是大家需要注意这个情况. 不同进程间ea缓冲相同文件是否会导致两份数据目前还没有测试.]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/12/20/1073/php-fpm%e4%b8%8b%e4%bd%bf%e7%94%a8eaccelerator%e4%ba%a7%e7%94%9f%e7%9a%84%e5%86%85%e5%ad%98%e9%97%ae%e9%a2%98.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle安装-Linux内核参数-共享内存信号量设置</title>
		<link>http://blog.thematice.com/html/y2010/12/20/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/12/20/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/12/20/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>ARP缓存表</title>
		<link>http://blog.thematice.com/html/y2010/12/20/1075/arp%e7%bc%93%e5%ad%98%e8%a1%a8.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=arp%25e7%25bc%2593%25e5%25ad%2598%25e8%25a1%25a8</link>
		<comments>http://blog.thematice.com/html/y2010/12/20/1075/arp%e7%bc%93%e5%ad%98%e8%a1%a8.html#comments</comments>
		<pubDate>Mon, 20 Dec 2010 09:36:43 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[系统管理]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=1075</guid>
		<description><![CDATA[arp_tbl是一个类型为struct neigh_table的全局变量，它是一个ARP的缓存表，也称为邻居表。协议栈通过ARP协议获取到的网络上邻居主机的IP地址与MAC地址的对应关系都会保存在这个表中，以备下次与邻居通讯时使用，同时，ARP模块自身也会提供一套相应的机制来更新和维护这个邻居表。下面逐个分析arp_tbl中的重要成员数据与函数。 entry_size，key_len，kmem_cachep。 entry_size是一个入口的大小，也就是arp_tbl中一个邻居的大小，邻居用struct neighbour结构体表示，该结构体的最后一个成员是u8 primary_key[0]，用于存放IP地址，作为这个邻居的哈希主键。所以entry_size的大小就是sizeof(struct neighbour) + 4，因为是用IP地址作主键，所以key_len就是4。kmem_cachep是一个后备高速缓存，创建一个邻居需要的内存从这个后备高速缓存中去取。 hash_buckets，hash_mask，entries，hash。 hash_buckets是一个哈希数组，里面存放了arp_tbl当前维护的所有的邻居，hash_mask是哈希数组大小的掩码，其初始值为1，所以hash_buckets的初始大小为2(0到hash_mask的空间范围)。entries是整个arp_tbl中邻居的数量，当entries大于hash_mask+1的时候，hash_buckets增长为原来的两部。成员hash是一个哈希函数指针，用于计算哈希值。 phash_buckets，PNEIGH_HASHMASK。 这是用于代理ARP的邻居哈希表，PNEIGH_HASHMASK固定为0xF,所以phash_buckets固定有16项，其它与hash_buckets相同。 id。 id作为这个邻居表的一个名称，是一个字符串信息，内核协议栈的arp_tbl的id是arp_cache。 gc_interval，gc_thresh1，gc_thresh2，gc_thresh3。 gc_thresh3是arp_tbl中允许拥有的邻居数量的上限，一旦超过这个上限，并且表中没有可以清理掉的垃圾邻居，那么就无法创建新的邻居，这个值缺省被置为1024。gc_thresh2是第二个阀值，如果表中的邻居数量超过这个阀值，并且在需要创建新的邻居时，发现已经超过5秒时间表没有被刷新过，则必须立即刷新arp_tbl表，进行强制垃圾回收，这个值缺省被置为512。gc_thresh1的用途暂时还没有发现，它缺省被置为128。gc_interval应该是常规的垃圾回收间隔时间，被缺省置为30秒，但目前在源代码中似乎没有看到它的应用。强制垃圾收集的工作即是把引用计数为1，且状态中没有NUD_PERMANENT的邻居全部从arp_tbl表中删除。 gc_timer。 这是一个常规垃圾回收的定时器，其定时处理函数是neigh_periodic_timer。该定时器超时后，处理函数处理hash_buckets表中的一项，下次超时后，再处理下一项，这里的垃圾回收比强制垃圾回收条件要宽松得多，如果邻居的状态为NUD_PERMANENT或NUD_IN_TIMER(该邻居正在解析中)，则不能回收。当邻居的引用计数为1时，并且邻居状态为NUD_FAILED(解析失败)或者该邻居距最近一次被使用时间已超过参数表中gc_staletime的值(缺省为60秒),则可以作为垃圾回收。回收完毕后，要设置下一次进行回收的时间(gc_timer的超时时间)，下次回收时间为参数表中base_reachable_time的值(缺省设为30秒)的一半，再除以hash_buckets哈希表中的项数。也就是，基本上15秒左右会把整个arp_tbl缓存表进行一次垃圾回收。 proxy_timer，proxy_queue，proxy_redo。 proxy_timer是一个关于代理ARP的定时器，proxy_queue是一个待处理的代理ARP数据包的队列，每次定时器超时，处理函数neigh_proxy_process依次检查队列中每一个代理ARP数据包(struct sk_buff)，对于超时，且满足相关条件的，调用proxy_redo进行处理。有关代理ARP，将专门分析讲述，这里暂时略过。 constructor。 这是一个邻居的初始化函数指针，每次创建出一个邻居后，需要马上调用这个函数对新创建的邻居进行一些初始化操作。邻居创建完，已经被赋于一个IP地址(邻居结构体的primary_key成员)，该函数首先根据这个IP地址来确定其地址类型，然后为邻居选择相应的操作函数集(初始化邻居结构体的一些成员，在讲到邻居结构体内容时再进行分析)。 pconstructor，pdestructor。 这是代理ARP的邻居的构建和析构函数指针，在IPv4模块中，未提供这两个函数，所以它们的指针值为空。 parms。 这是一个结构体struct neigh_parms的链表，系统中每个网络设备接口对应链表中一个节点，表示该设备接口上的邻居的一些传输参数。同时，链表中还有一个缺省的项。 last_rand，hash_rand 这两个成员其实没有联系，hash_rand是用于邻居哈希表hash_buckets的一个随机数，last_rand用于记录一个时间，即上次为parms链表中每个节点生成reachable_time的时间，reachable_time是需要被定时刷新的。 stats。 记录arp_tbl被操作次数的一些统计数据。]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/12/20/1075/arp%e7%bc%93%e5%ad%98%e8%a1%a8.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>用自动wget或ftp提高工作效率</title>
		<link>http://blog.thematice.com/html/y2010/07/18/1102/1102.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=1102</link>
		<comments>http://blog.thematice.com/html/y2010/07/18/1102/1102.html#comments</comments>
		<pubDate>Sun, 18 Jul 2010 15:57:51 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[HTTP]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/html/y2010/07/18/1102/1102.html</guid>
		<description><![CDATA[wget ftp://username:password@ip_address/dir/file_name 比自动FTP的SHELL脚本的方法方便多了. 例如获取FTP服务器上文件名是昨天日期的文件,如filename_20040608_001,filename_20040608_002,&#8230;&#8230; #!/bin/sh rq=`date &#8211;date &#8217;1 days ago&#8217; “+%Y%m%d”` wget -q ftp://username:password@ip_address/filename_$rq* 有的时候,FTP站点用wget可以进行目录浏览,也可以下载固定文件名的文件, 却不能把文件名是昨天日期的文件取下来时. 我想了一个方法: #!/bin/sh rq=`date &#8211;date &#8217;1 days ago&#8217; “+%Y%m%d”` wget -nr ftp://username:password@ip_address/filename_$rq* grep filename_$rq .listing &#62; 1.txt cat 1.txt&#124;while read LINE do file_name=`echo $LINE&#124;awk &#8216;{print $9}&#8217;` wget -q ftp://username:password@ip_address/$file_name done 原理是在目录浏览.listing文件里查找到昨天生成的文件名到临时文件1.txt里 -rw-r&#8211;r&#8211;    1 fengyu   fengyu     106880 Jun  9 11:44 file_name_20040608001 [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/07/18/1102/1102.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Proxy快速实现读写分离以及负载均衡</title>
		<link>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#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/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#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/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/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mysql编译安装参数优化</title>
		<link>http://blog.thematice.com/html/y2010/06/18/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/06/18/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/06/18/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>1</slash:comments>
		</item>
		<item>
		<title>开启开启eaccelerator后的磁盘性能问题后的磁盘性能问题</title>
		<link>http://blog.thematice.com/html/y2010/06/08/1089/%e5%bc%80%e5%90%af%e5%bc%80%e5%90%afeaccelerator%e5%90%8e%e7%9a%84%e7%a3%81%e7%9b%98%e6%80%a7%e8%83%bd%e9%97%ae%e9%a2%98%e5%90%8e%e7%9a%84%e7%a3%81%e7%9b%98%e6%80%a7%e8%83%bd%e9%97%ae%e9%a2%98.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e5%25bc%2580%25e5%2590%25af%25e5%25bc%2580%25e5%2590%25afeaccelerator%25e5%2590%258e%25e7%259a%2584%25e7%25a3%2581%25e7%259b%2598%25e6%2580%25a7%25e8%2583%25bd%25e9%2597%25ae%25e9%25a2%2598%25e5%2590%258e%25e7%259a%2584%25e7%25a3%2581%25e7%259b%2598%25e6%2580%25a7%25e8%2583%25bd%25e9%2597%25ae%25e9%25a2%2598</link>
		<comments>http://blog.thematice.com/html/y2010/06/08/1089/%e5%bc%80%e5%90%af%e5%bc%80%e5%90%afeaccelerator%e5%90%8e%e7%9a%84%e7%a3%81%e7%9b%98%e6%80%a7%e8%83%bd%e9%97%ae%e9%a2%98%e5%90%8e%e7%9a%84%e7%a3%81%e7%9b%98%e6%80%a7%e8%83%bd%e9%97%ae%e9%a2%98.html#comments</comments>
		<pubDate>Tue, 08 Jun 2010 08:19:23 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[未分类]]></category>
		<category><![CDATA[开启eaccelerator后的磁盘性能问题]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/html/y2010/06/08/1089/%e5%bc%80%e5%90%af%e5%bc%80%e5%90%afeaccelerator%e5%90%8e%e7%9a%84%e7%a3%81%e7%9b%98%e6%80%a7%e8%83%bd%e9%97%ae%e9%a2%98%e5%90%8e%e7%9a%84%e7%a3%81%e7%9b%98%e6%80%a7%e8%83%bd%e9%97%ae%e9%a2%98.html</guid>
		<description><![CDATA[本篇只是个人猜测.仅供参考,注意辩读. 我的linode主机,前两天一度出现硬盘IO狂飙的事情.被警告和死机几次,很头疼.仔细检查很多地方,最终将目标锁定在eaccelerator,只有开启它之后,程序才会频繁的进行数据交换.将所有键值指向shm,即内存作为缓存容器,IO读写立刻下降. 参数如下: zend_extension = “/usr/local/lib/php/extensions/no-debug-non-zts-20060613/eaccelerator.so” eaccelerator.shm_size = 128 eaccelerator.enable = 1 eaccelerator.optimizer = 1 eaccelerator.debug = 0 eaccelerator.name_space = “” eaccelerator.check_mtime = 1 eaccelerator.filter = “” eaccelerator.shm_max = 0 eaccelerator.shm_ttl = 3600 eaccelerator.shm_prune_period = 3600 eaccelerator.shm_only = 1 eaccelerator.compress = 0 eaccelerator.compress_level = 6 eaccelerator.keys = shm eaccelerator.sessions = shm eaccelerator.content = shm eaccelerator.compress [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/06/08/1089/%e5%bc%80%e5%90%af%e5%bc%80%e5%90%afeaccelerator%e5%90%8e%e7%9a%84%e7%a3%81%e7%9b%98%e6%80%a7%e8%83%bd%e9%97%ae%e9%a2%98%e5%90%8e%e7%9a%84%e7%a3%81%e7%9b%98%e6%80%a7%e8%83%bd%e9%97%ae%e9%a2%98.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>linux下用源代码编译mysql（完整步骤）</title>
		<link>http://blog.thematice.com/html/y2010/05/18/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/05/18/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/05/18/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>MySQL也有潜规则 &#8211; Select 语句不加 Order By 如何排序？</title>
		<link>http://blog.thematice.com/html/y2010/04/26/1085/mysql%e4%b9%9f%e6%9c%89%e6%bd%9c%e8%a7%84%e5%88%99-select-%e8%af%ad%e5%8f%a5%e4%b8%8d%e5%8a%a0-order-by-%e5%a6%82%e4%bd%95%e6%8e%92%e5%ba%8f%ef%bc%9f.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=mysql%25e4%25b9%259f%25e6%259c%2589%25e6%25bd%259c%25e8%25a7%2584%25e5%2588%2599-select-%25e8%25af%25ad%25e5%258f%25a5%25e4%25b8%258d%25e5%258a%25a0-order-by-%25e5%25a6%2582%25e4%25bd%2595%25e6%258e%2592%25e5%25ba%258f%25ef%25bc%259f</link>
		<comments>http://blog.thematice.com/html/y2010/04/26/1085/mysql%e4%b9%9f%e6%9c%89%e6%bd%9c%e8%a7%84%e5%88%99-select-%e8%af%ad%e5%8f%a5%e4%b8%8d%e5%8a%a0-order-by-%e5%a6%82%e4%bd%95%e6%8e%92%e5%ba%8f%ef%bc%9f.html#comments</comments>
		<pubDate>Mon, 26 Apr 2010 07:00:41 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=1085</guid>
		<description><![CDATA[今天遇到一个问题，有一个 Select 语句没有加 “Order By”，返回的数据是不确定的。 这种问题碰到不止几次了。追根寻底， Select 语句如果不加 “Order By”， MySQL会怎么排序呢？ 在网上搜了一下，在MySQL论坛发现了这篇文章。 http://forums.mysql.com/read.php?21,239471,239688#msg-239688 简单翻译一下 * 不能依赖 MySQL 的默认排序 * 如果你想排序，总是加上 Order By * GROUP BY 强加了 Order By （这与标准语法冲突，如果要避免，请使用 ORDER BY NULL）这里我有疑问， 到底强加了何种 Order by 对于 MyISAM 表 MySQL Select 默认排序是按照物理存储顺序显示的。（不进行额外排序）. 也就是说 SELECT * FROM tbl &#8211; 会产生“表扫描”。如果表没有删除、替换、更新操作，记录会显示为插入的顺序。 InnoDB 表 同样的情况，会按主键的顺序排列。再次强调，这只是潜规则（artifact of the underlying implementation：怎么翻译？）， [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/04/26/1085/mysql%e4%b9%9f%e6%9c%89%e6%bd%9c%e8%a7%84%e5%88%99-select-%e8%af%ad%e5%8f%a5%e4%b8%8d%e5%8a%a0-order-by-%e5%a6%82%e4%bd%95%e6%8e%92%e5%ba%8f%ef%bc%9f.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用 cURL 度量 Web 站点的响应时间</title>
		<link>http://blog.thematice.com/html/y2010/04/21/1077/use-curl-check-web-connect-time.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=use-curl-check-web-connect-time</link>
		<comments>http://blog.thematice.com/html/y2010/04/21/1077/use-curl-check-web-connect-time.html#comments</comments>
		<pubDate>Wed, 21 Apr 2010 09:56:28 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux  web]]></category>
		<category><![CDATA[linux shell]]></category>
		<category><![CDATA[Linux tools]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[liinux]]></category>
		<category><![CDATA[net]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=1077</guid>
		<description><![CDATA[[root@web-little-opt-146 NginxSoftware]# time curl -o /dev/null -s -w %{time_connect}:%{time_starttransfer}:%{time_total} http://image.kaluli.net/index/images/index/20100416/127141246304.gif 1.259:1.281:1.392 real    0m1.394s user    0m0.002s sys     0m0.003s 　　清单 1 给出对一个流行的新闻站点执行 curl 命令的情况。输出通常是 HTML 代码，通过 -o 参数发送到 /dev/null。-s 参数去掉所有状态信息。-w 参数让 curl 写出表 1 列出的计时器的状态信息： 表 1. curl 使用的计时器 计时器 描述 time_connect 建立到服务器的 TCP 连接所用的时间 time_starttransfer 在发出请求之后，Web 服务器返回数据的第一个字节所用的时间 time_total 完成请求所用的时间 　　这些计时器都相对于事务的起始时间，甚至要先于 Domain Name Service（DNS）查询。因此，在发出请求之后，         Web 服务器处理请求并开始发回数据所用的时间是 [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/04/21/1077/use-curl-check-web-connect-time.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UCenter Home 数据表结构</title>
		<link>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#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/03/30/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/03/30/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>构建postfix邮件服务器（五）extmail和extman的安装，实现web使用和管理邮件系统</title>
		<link>http://blog.thematice.com/html/y2010/03/17/1067/%e6%9e%84%e5%bb%bapostfix%e9%82%ae%e4%bb%b6%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%88%e4%ba%94%ef%bc%89extmail%e5%92%8cextman%e7%9a%84%e5%ae%89%e8%a3%85%ef%bc%8c%e5%ae%9e%e7%8e%b0web%e4%bd%bf%e7%94%a8.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e6%259e%2584%25e5%25bb%25bapostfix%25e9%2582%25ae%25e4%25bb%25b6%25e6%259c%258d%25e5%258a%25a1%25e5%2599%25a8%25ef%25bc%2588%25e4%25ba%2594%25ef%25bc%2589extmail%25e5%2592%258cextman%25e7%259a%2584%25e5%25ae%2589%25e8%25a3%2585%25ef%25bc%258c%25e5%25ae%259e%25e7%258e%25b0web%25e4%25bd%25bf%25e7%2594%25a8</link>
		<comments>http://blog.thematice.com/html/y2010/03/17/1067/%e6%9e%84%e5%bb%bapostfix%e9%82%ae%e4%bb%b6%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%88%e4%ba%94%ef%bc%89extmail%e5%92%8cextman%e7%9a%84%e5%ae%89%e8%a3%85%ef%bc%8c%e5%ae%9e%e7%8e%b0web%e4%bd%bf%e7%94%a8.html#comments</comments>
		<pubDate>Wed, 17 Mar 2010 13:32:55 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[mail]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[extmail]]></category>
		<category><![CDATA[extman]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=1067</guid>
		<description><![CDATA[一、准备 1.在www.extmail.org 中下载extmail-1.2.tar.gz 和extman1.1 Extmail 用于从浏览器中登入、使用邮件系统 Extman 用于从浏览器中管邮件系统 2.由于安装extmail要用到以下三个包（到http://search.cpan.org 中搜索） 1）Unix-Syslog http://search.cpan.org/~mharnisch/Unix-Syslog-1.1/Syslog.pm 2）DBI http://search.cpan.org/~timb/DBI-1.609/ 3）DBD-mysql http://search.cpan.org/~capttofu/DBD-mysql-4.013/lib/DBD/mysql.pm 3.安装Extman web管理要用到以下四个软件包 1）GD http://search.cpan.org/~lds/GD-2.44/ 解决验证码 2）File-Tail http://search.cpan.org/~mgrabnar/File-Tail-0.99.3/ 支持图形日志 3）rrdtool-1.2.23-3..el5.i386.rpm 支持图形日志 4）rrdtool-perl-1.2.23-3.el5.i386.rpm 支持图形日志 二、按先后顺序安装以下软件 1.安装Unix-Syslog 1）解压 tar zxvf Unix-Syslog-1.1.tar.gz 2）进入目录 cd Unix-syslog-1.1 3）预配置 perl Makefile.PL 4）编译，安装 make ; make install 2.安装DBI 1）解压 tar zxvf DBI-1.609.tar.gz 2）进入目录cd DBI-1.609 3）预配置perl Makefile.PL 4）编译，安装 [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/03/17/1067/%e6%9e%84%e5%bb%bapostfix%e9%82%ae%e4%bb%b6%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%88%e4%ba%94%ef%bc%89extmail%e5%92%8cextman%e7%9a%84%e5%ae%89%e8%a3%85%ef%bc%8c%e5%ae%9e%e7%8e%b0web%e4%bd%bf%e7%94%a8.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>构建postfix邮件服务器（四）配置postfix支持虚拟用户</title>
		<link>http://blog.thematice.com/html/y2010/03/17/1065/%e6%9e%84%e5%bb%bapostfix%e9%82%ae%e4%bb%b6%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%88%e5%9b%9b%ef%bc%89%e9%85%8d%e7%bd%aepostfix%e6%94%af%e6%8c%81%e8%99%9a%e6%8b%9f%e7%94%a8%e6%88%b7.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e6%259e%2584%25e5%25bb%25bapostfix%25e9%2582%25ae%25e4%25bb%25b6%25e6%259c%258d%25e5%258a%25a1%25e5%2599%25a8%25ef%25bc%2588%25e5%259b%259b%25ef%25bc%2589%25e9%2585%258d%25e7%25bd%25aepostfix%25e6%2594%25af%25e6%258c%2581%25e8%2599%259a%25e6%258b%259f%25e7%2594%25a8%25e6%2588%25b7</link>
		<comments>http://blog.thematice.com/html/y2010/03/17/1065/%e6%9e%84%e5%bb%bapostfix%e9%82%ae%e4%bb%b6%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%88%e5%9b%9b%ef%bc%89%e9%85%8d%e7%bd%aepostfix%e6%94%af%e6%8c%81%e8%99%9a%e6%8b%9f%e7%94%a8%e6%88%b7.html#comments</comments>
		<pubDate>Wed, 17 Mar 2010 13:31:56 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[mail]]></category>
		<category><![CDATA[postfix]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=1065</guid>
		<description><![CDATA[一、准备 1.从www.extmail.org 中下载extman-1.1.tar.gz 2.从http://sourceforge.net/projects/courier/files/ 下载courier-authlib 使用Courier-authlib软件的目的是因为saslauthd程序不支持数据库认证，而Courier-authlib支持多种数据库认证 3.检查postfix是否支持虚拟用户 postconf – m &#124; grep msyql 如果出现mysql表示支持 二、建立虚拟用户数据库 1启动mysql service mysqld restart (要想使用此方法启动，必须将mysqld添加为系统服务，见构建postfix邮件服务器（一）) 2.解压 extman tar zxvf extman-1.1.tar.gz 3.导入extman软件包中的数据库脚本 cd extman-1.1/docs mysql -u root -p123456 &#60; extmail.sql mysql -u root -p123456 &#60; init.sql -p后面接的是mysql的密码 （要想直接使用mysql就要输入export PATH=$PATH:/usr/local/mysql/bin） extmail.sql 脚本进行的操作：主要针对邮件域localhost进行初始化 创建 extmail 库，及该库中的一些表 创建用户 extmail@localhost，密码为 extmail 对数据库extmail中的表拥有“SELECT”、“UPDATE”的权限 创建用户 webman@localhost，密码为 extman [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/03/17/1065/%e6%9e%84%e5%bb%bapostfix%e9%82%ae%e4%bb%b6%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%88%e5%9b%9b%ef%bc%89%e9%85%8d%e7%bd%aepostfix%e6%94%af%e6%8c%81%e8%99%9a%e6%8b%9f%e7%94%a8%e6%88%b7.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>构建postfix邮件服务器(二)postfix和dovecot的安装，实现简单的收发邮件</title>
		<link>http://blog.thematice.com/html/y2010/03/17/1063/%e6%9e%84%e5%bb%bapostfix%e9%82%ae%e4%bb%b6%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%ba%8cpostfix%e5%92%8cdovecot%e7%9a%84%e5%ae%89%e8%a3%85%ef%bc%8c%e5%ae%9e%e7%8e%b0%e7%ae%80%e5%8d%95%e7%9a%84%e6%94%b6.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e6%259e%2584%25e5%25bb%25bapostfix%25e9%2582%25ae%25e4%25bb%25b6%25e6%259c%258d%25e5%258a%25a1%25e5%2599%25a8%25e4%25ba%258cpostfix%25e5%2592%258cdovecot%25e7%259a%2584%25e5%25ae%2589%25e8%25a3%2585%25ef%25bc%258c%25e5%25ae%259e%25e7%258e%25b0%25e7%25ae%2580%25e5%258d%2595%25e7%259a%2584%25e6%2594%25b6</link>
		<comments>http://blog.thematice.com/html/y2010/03/17/1063/%e6%9e%84%e5%bb%bapostfix%e9%82%ae%e4%bb%b6%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%ba%8cpostfix%e5%92%8cdovecot%e7%9a%84%e5%ae%89%e8%a3%85%ef%bc%8c%e5%ae%9e%e7%8e%b0%e7%ae%80%e5%8d%95%e7%9a%84%e6%94%b6.html#comments</comments>
		<pubDate>Wed, 17 Mar 2010 13:30:57 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[mail]]></category>
		<category><![CDATA[postfix]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=1063</guid>
		<description><![CDATA[一、准备 1.在 http://mirror.postfixchina.org/ 下载好postfix-2.6.5.tar.gz 2.在http://www.dovecot.org 中下载好dovecot-1.1.16.tar.gz Dovecot是一个安全性较好的POP3/IMAP服务器软件，响应速度快而且扩展性好 注意：所有源码包都放在 /postfix-an 目录下，解压也是在此目录下 3.停止sendmail ①Service sendmail stop ②chkconfig &#8211;level 35 sendmail off 4.修改主机名 ①hostname mail.hongyi.com 把系统的主机名修改为你的域名 ②vi /etc/sysconfig/network 把HOSTNAME= 修改为 mail.hongyi.com ③vi /etc/hosts 添加你主机的IP和对应的主机名 192.168.18.138 mail.hongyi.com 二、安装postfix （一）、创建运行postfix服务的用户postfix ，组帐号 postfix、postdrop ①groupadd -g 1200 postdrop -g 1200表示gid为1200 这个数字随便只要不重复就行 ②groupadd -g 1000 postfix -g 1000表示gid为1000 这个数字随便 只要不重复就行 ③useradd -M -u [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/03/17/1063/%e6%9e%84%e5%bb%bapostfix%e9%82%ae%e4%bb%b6%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%ba%8cpostfix%e5%92%8cdovecot%e7%9a%84%e5%ae%89%e8%a3%85%ef%bc%8c%e5%ae%9e%e7%8e%b0%e7%ae%80%e5%8d%95%e7%9a%84%e6%94%b6.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>构建postfix邮件服务器(一)lamp平台的安装</title>
		<link>http://blog.thematice.com/html/y2010/03/17/1060/%e6%9e%84%e5%bb%bapostfix%e9%82%ae%e4%bb%b6%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%b8%80lamp%e5%b9%b3%e5%8f%b0%e7%9a%84%e5%ae%89%e8%a3%85.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e6%259e%2584%25e5%25bb%25bapostfix%25e9%2582%25ae%25e4%25bb%25b6%25e6%259c%258d%25e5%258a%25a1%25e5%2599%25a8%25e4%25b8%2580lamp%25e5%25b9%25b3%25e5%258f%25b0%25e7%259a%2584%25e5%25ae%2589%25e8%25a3%2585</link>
		<comments>http://blog.thematice.com/html/y2010/03/17/1060/%e6%9e%84%e5%bb%bapostfix%e9%82%ae%e4%bb%b6%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%b8%80lamp%e5%b9%b3%e5%8f%b0%e7%9a%84%e5%ae%89%e8%a3%85.html#comments</comments>
		<pubDate>Wed, 17 Mar 2010 13:28:47 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[mail]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[lamp]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=1060</guid>
		<description><![CDATA[在安装postfix前我们要用源码编译的方式搭建出LAMP平台。 L：表示linux系统 A：apache，web服务器，后面我们要用webmail来收发邮件 M：mysql数据库，在postfix的虚拟用户时，要用到mysql来存储虚拟用户 P：php和perl，webmail来收发邮件，和extmail邮件管理 一、linux 1.linux：RHEL5.3,安装了一些基本的软件包 二、apache的安装 1.去官网下载httpd- 2.2.14.tar.gz （http://httpd.apache.org/download.cgi） 2.解压 tar zxvf httpd-2.2.14.tar.gz 3.进入解压目录 4.配置选项（//及其后面是注释） ./configure &#8211;prefix=/usr/local/apache2   //指定apache的安装位置 &#8211;enable-so      // 使用动态加载模块功能 &#8211;enable-rewrite   //有rewrite网络地址重写功能 &#8211;enable-ssl     //有ssl功能 &#8211;with-ssl=/usr/lib   //指定 //ssl位置 &#8211;enable-auth-digest   //Apache可以使用摘要认证（Digest） &#8211;enable-cgi   //cgi支持 &#8211;enable-suexec   //suEXEC支持 &#8211;with-suexec-caller=daemon   //Apache运行时所用的UID。这是唯一允许执行程序的用户 &#8211;with-suexec-docroot=/usr/local/apache2/htdocs  //suEXEC处理器的文档根目录 4.编译make 5.安装make install 三、mysql 1.http://dev.mysql.com/downloads/mysql/5.1.html 在这个页面下载源码包（Source ）mysql5.1.43 记住是源码包，不是安装好了的包 2. 创建允许mysql数据库的用户 useradd -M -s /sbin/nologin mysql [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/03/17/1060/%e6%9e%84%e5%bb%bapostfix%e9%82%ae%e4%bb%b6%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%b8%80lamp%e5%b9%b3%e5%8f%b0%e7%9a%84%e5%ae%89%e8%a3%85.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>构建postfix邮件服务器（三）启用SMTP用户认证</title>
		<link>http://blog.thematice.com/html/y2010/03/17/1056/%e6%9e%84%e5%bb%bapostfix%e9%82%ae%e4%bb%b6%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%88%e4%b8%89%ef%bc%89%e5%90%af%e7%94%a8smtp%e7%94%a8%e6%88%b7%e8%ae%a4%e8%af%81.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e6%259e%2584%25e5%25bb%25bapostfix%25e9%2582%25ae%25e4%25bb%25b6%25e6%259c%258d%25e5%258a%25a1%25e5%2599%25a8%25ef%25bc%2588%25e4%25b8%2589%25ef%25bc%2589%25e5%2590%25af%25e7%2594%25a8smtp%25e7%2594%25a8%25e6%2588%25b7%25e8%25ae%25a4%25e8%25af%2581</link>
		<comments>http://blog.thematice.com/html/y2010/03/17/1056/%e6%9e%84%e5%bb%bapostfix%e9%82%ae%e4%bb%b6%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%88%e4%b8%89%ef%bc%89%e5%90%af%e7%94%a8smtp%e7%94%a8%e6%88%b7%e8%ae%a4%e8%af%81.html#comments</comments>
		<pubDate>Wed, 17 Mar 2010 13:25:46 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[mail]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[SMTP]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=1056</guid>
		<description><![CDATA[一、使用smtp用户认证 1.发信时无需认证的邮件服务器，很容易造成大量垃圾邮件的产生，也给服务器带来了不必要的负担 2.SMTP发信认证的常见形式如下：当用户通过SMTP协议向外部邮件域发送邮件时，服务器会要求用户提供用户帐号和口令进行身份认证，只有成功通过身份认证的用户才被允许向外部发送邮件，否则将拒绝发信请求。 3.Cyrus SASL（Cyrus Simple Authentication and Security Layer，Cyrus简单认证安全层）在RHEL5系统中已默认安装 4.saslauthd 是Cyrus SASL软件中的一个程序 二、准备 1.查看系统是否按照cyrus-sasl Rpm -qa &#124;grep cyrus cyrus-sasl-2.1.22-4 cyrus-sasl-lib-2.1.22-4 cyrus-sasl-plain-2.1.22-4 cyrus-sasl-devel-2.1.22-4 三、设置 （一）设置Cyrus sasl函数库 cp Sendmail.conf smtpd.conf vi /usr/lib/sasl2/smtpd.conf 输入 pwcheck_method: saslauthd （二）启动saslautthd服务 service saslauthd start chkconfig &#8211; –level 35 saslauthd on (三)修改main.cf配置文件，添加SMTP认证相关的配置参数 Vi /etc/postfix/main.cf smtpd_sasl_auth_enable = yes \\启用SMTP认证 smtpd_sasl_security_options = noanonymous \\禁止匿名登录 [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/03/17/1056/%e6%9e%84%e5%bb%bapostfix%e9%82%ae%e4%bb%b6%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%88%e4%b8%89%ef%bc%89%e5%90%af%e7%94%a8smtp%e7%94%a8%e6%88%b7%e8%ae%a4%e8%af%81.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XtraDB storage engine release 1.0.6-9</title>
		<link>http://blog.thematice.com/html/y2010/02/23/1040/xtradb-storage-engine-release-1-0-6-9.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=xtradb-storage-engine-release-1-0-6-9</link>
		<comments>http://blog.thematice.com/html/y2010/02/23/1040/xtradb-storage-engine-release-1-0-6-9.html#comments</comments>
		<pubDate>Tue, 23 Feb 2010 02:21:36 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[DataBase]]></category>
		<category><![CDATA[XtraDB]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=1040</guid>
		<description><![CDATA[Dear Community, As of today Release 9 of XtraDB storage engine is available. The release includes following new features: The release is base on 1.0.6 version of InnoDB plugin. MySQL 5.1.42 as a base release Separate purge thread and LRU dump is implemented (this feature was actually added in Release 8, but somehow it was [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/02/23/1040/xtradb-storage-engine-release-1-0-6-9.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>sed1line_zh-CN</title>
		<link>http://blog.thematice.com/html/y2010/02/23/1035/sed1line_zh-cn.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=sed1line_zh-cn</link>
		<comments>http://blog.thematice.com/html/y2010/02/23/1035/sed1line_zh-cn.html#comments</comments>
		<pubDate>Tue, 23 Feb 2010 02:13:11 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux shell]]></category>
		<category><![CDATA[Linux tools]]></category>
		<category><![CDATA[sed&swk&shell]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=1035</guid>
		<description><![CDATA[?Download shell.sh1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/02/23/1035/sed1line_zh-cn.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MyISAM和InnoDB的插入性能测试</title>
		<link>http://blog.thematice.com/html/y2010/02/23/1032/myisam%e5%92%8cinnodb%e7%9a%84%e6%8f%92%e5%85%a5%e6%80%a7%e8%83%bd%e6%b5%8b%e8%af%95.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=myisam%25e5%2592%258cinnodb%25e7%259a%2584%25e6%258f%2592%25e5%2585%25a5%25e6%2580%25a7%25e8%2583%25bd%25e6%25b5%258b%25e8%25af%2595</link>
		<comments>http://blog.thematice.com/html/y2010/02/23/1032/myisam%e5%92%8cinnodb%e7%9a%84%e6%8f%92%e5%85%a5%e6%80%a7%e8%83%bd%e6%b5%8b%e8%af%95.html#comments</comments>
		<pubDate>Tue, 23 Feb 2010 02:09:16 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[test]]></category>
		<category><![CDATA[压力]]></category>
		<category><![CDATA[测试]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=1032</guid>
		<description><![CDATA[测试表结构： CREATE TABLE `test` ( `ID` bigint(20) NOT NULL auto_increment, `INT_A` int(11) default NULL, `INT_B` int(11) default NULL, `INT_C` int(11) default NULL, `STRING_A` varchar(50) default NULL, `STRING_B` varchar(250) default NULL, `STRING_C` varchar(700) default NULL, PRIMARY KEY (`ID`), KEY `IDX_TEST_IA` (`INT_A`), KEY `IDX_TEST_IB` (`INT_B`), KEY `IDX_TEST_SA` (`STRING_A`,`INT_C`) ) ; 数据量：总共10个表，每个表插入400w数据 并发数：每个表并发20个线程去执行插入操作，总共200个线程 数据特点：除了主键采用自增外，索引相关字段全是随机生成的。字符串的长度和内容都是随机的，平均长度为预定义的一半 X轴是unix时间戳，Y轴是十秒钟的插入量。从以上测试结果可以看出，InnoDB的插入性能随着数据量的增多一直在下降，而且表现相当不稳定。MyISAM的表现还是比较好的，虽然瞬时插入的谷值一直在下降，但是整体表现很稳定。 总的来说，Ext3的cache算法性能还是非常不错的，不愧是linux上面备受推崇的文件系统。InnoDB虽然提供了高可用性，但是插入性能方面的表现并不如MyISAM稳定。 Tags: benchmark, [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/02/23/1032/myisam%e5%92%8cinnodb%e7%9a%84%e6%8f%92%e5%85%a5%e6%80%a7%e8%83%bd%e6%b5%8b%e8%af%95.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

