<?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>Leo の Blog</title>
	<atom:link href="http://blog.openider.com/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.openider.com</link>
	<description>Where there is a will there is a way! Trust youself can do it!</description>
	<lastBuildDate>Thu, 27 Aug 2009 10:42:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>玩玩 MySQL 更新 Memcached (2) MySQL 服务器</title>
		<link>http://blog.openider.com/archives/176</link>
		<comments>http://blog.openider.com/archives/176#comments</comments>
		<pubDate>Thu, 27 Aug 2009 10:31:21 +0000</pubDate>
		<dc:creator>Guya</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[memcache]]></category>
		<category><![CDATA[memcached]]></category>

		<guid isPermaLink="false">http://blog.openider.com/?p=176</guid>
		<description><![CDATA[现在配置 MySQL 数据库服务器 和 MySQL 的 Memcached 扩展.
下载最新版的 mysql 5.1 二进制包. 这里使用 mysql-5.1.37-linux-i686-icc-glibc23.tar.gz

tar zxf mysql-5.1.37-linux-i686-icc-glibc23.tar.gz
sudo mv mysql-5.1.37-linux-i686-icc-glibc23 /usr/local/mysql
sudo groupadd mysql
sudo useradd -g mysql mysql
cd /usr/local/mysql
sudo chown -R mysql .
sudo chgrp -R mysql .
sudo scripts/mysql_install_db --user=mysql
sudo chown -R root .
sudo chown -R mysql data
sudo cp support-files/my-medium.cnf /etc/my.cnf
sudo support-files/mysql.server start
sudo bin/mysqladmin -u root password 'rootpwd'
sudo bin/mysql -u [...]]]></description>
		<wfw:commentRss>http://blog.openider.com/archives/176/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>玩玩 MySQL 更新 Memcached (2) Memcached 服务器</title>
		<link>http://blog.openider.com/archives/172</link>
		<comments>http://blog.openider.com/archives/172#comments</comments>
		<pubDate>Thu, 27 Aug 2009 09:56:28 +0000</pubDate>
		<dc:creator>Guya</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[memcache]]></category>
		<category><![CDATA[memcached]]></category>

		<guid isPermaLink="false">http://blog.openider.com/?p=172</guid>
		<description><![CDATA[现在准备两台 Memcached 服务器, 使用超简单模式安装配置：

wget http://www.monkey.org/~provos/libevent-1.4.12-stable.tar.gz
tar zxf libevent-1.4.12-stable.tar.gz
cd libevent-1.4.12-stable/
./configure --prefix=/usr
make
sudo make install
cd ..
wget http://memcached.googlecode.com/files/memcached-1.4.0.tar.gz
tar zxf memcached-1.4.0.tar.gz
./configure --prefix=/usr
make
sudo make install

安装完毕！ 启动 Memcached 服务:

sudo memcached -d -m 64 -u root -l 192.168.2.95 -p 11211 -c 64 -P /tmp/memcached.pid

检查一下是否起来:

ps auxf &#124; grep memcached

关闭 Memcached 服务:

sudo kill `cat /tmp/memcached.pid`

Memcached 启动参数参考:

-d 选项是启动一个守护进程，
-m 是分配给Memcache使用的内存数量，单位是MB，我这里是64MB
-u 是运行Memcache的用户，我这里是root
-l 是监听的服务器IP地址，如果有多个地址的话，我这里指定了服务器的IP地址192.168.2.95，
-p 是设置Memcache监听的端口，我这里设置了12000，最好是1024以上的端口，
-c 选项是最大运行的并发连接数，默认是1024，我这里设置了64，按照你服务器的负载量来设定，
-P 是设置保存Memcache的pid文件，我这里是保存在 /tmp/memcached.pid

2台 Memcached 服务器都按此配置即可. [...]]]></description>
		<wfw:commentRss>http://blog.openider.com/archives/172/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>玩玩 MySQL 更新 Memcached (1) 目标</title>
		<link>http://blog.openider.com/archives/169</link>
		<comments>http://blog.openider.com/archives/169#comments</comments>
		<pubDate>Thu, 27 Aug 2009 08:16:02 +0000</pubDate>
		<dc:creator>Guya</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[memcache]]></category>
		<category><![CDATA[memcached]]></category>
		<category><![CDATA[trigger]]></category>

		<guid isPermaLink="false">http://blog.openider.com/?p=169</guid>
		<description><![CDATA[玩玩 MySQL 5.1 的 trigger,  让 MySQL 通过 Trigger 更新 本地的 Memcached 服务器. 数据库 主从模式. 具体模拟测试配置如下：
Master DB Server IP: 192.168.2. 92 (Ubuntu-8.04 base system + mysql 5.1.37)
Slave DB Server IP: 192.168.2.93 (同上)
Memcached Server 1: 192.168.2. 95 (Ubuntu-8.04 base system + memcached-1.4)
Memcached Server 2: 192.168.2.96 (同上)
假设 Memcached Server 1 和 Master DB Server 是一个本地环境, Memcached Server [...]]]></description>
		<wfw:commentRss>http://blog.openider.com/archives/169/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mysql 同步 trigger 更新 memcache</title>
		<link>http://blog.openider.com/archives/163</link>
		<comments>http://blog.openider.com/archives/163#comments</comments>
		<pubDate>Wed, 26 Aug 2009 09:09:35 +0000</pubDate>
		<dc:creator>Guya</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[memcached]]></category>
		<category><![CDATA[trigger]]></category>

		<guid isPermaLink="false">http://blog.openider.com/?p=163</guid>
		<description><![CDATA[聊一下通过 MySQL 通过触发器更新本地的 Memcached 服务器.
模拟一下服务器环境：
Master Database Server: 192.168.2.96
Slave Database Server: 192.168.2.95
和 master db 同步的 memcache 服务器: 192.168.2.92
和 slave db 同步的 memcache 服务器: 192.168.2.93
先搭建 Memcached 服务器环境：
下载安装 Memcached, 编译安装.

wget http://memcached.googlecode.com/files/memcached-1.4.0.tar.gz
tar zxf memcached-1.4.0.tar.gz
./configure --prefix=/usr
make
sudo make install
&#160;
wget http://download.tangent.org/libmemcached-0.31.tar.gz
cd libmemcached-0.31/
./configure --prefix=/usr
make
sudo make install

启动 Memcached 服务, 在另一台机器用PHP测试一下:

sudo memcached -d -m 64 -u root -l 192.168.2.92 -p 11211 -c 64 -P /tmp/memcached.pid

检查一下 [...]]]></description>
		<wfw:commentRss>http://blog.openider.com/archives/163/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>发布一个基于 Zend Framework 的开源项目 momoger.com</title>
		<link>http://blog.openider.com/archives/160</link>
		<comments>http://blog.openider.com/archives/160#comments</comments>
		<pubDate>Tue, 04 Aug 2009 09:03:33 +0000</pubDate>
		<dc:creator>Guya</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[momoger]]></category>
		<category><![CDATA[zend framework]]></category>

		<guid isPermaLink="false">http://blog.openider.com/?p=160</guid>
		<description><![CDATA[作开源工作很累。 这个项目是我在新公司给同事们介绍 Zend Framework 用的示例项目。 可惜效果不是很理想。具体的就不说了。
项目源码发布到 google code 上。 项目地址为： http://code.google.com/p/momoger/
喜欢学习 Zend Framework 的同学可以下载去看看， 这个例子还是比较全面的。 以后有时间可能把其他的方面也开发进来。
建议先看项目里的 documents/readme.txt ， 关键的说明我都写在里面了。
有问题和已经可以和我交流。 呵呵！
]]></description>
		<wfw:commentRss>http://blog.openider.com/archives/160/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
