<?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 &#187; Linux</title>
	<atom:link href="http://blog.openider.com/archives/category/linux/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>PHP5.3.0 正式发布， 超级爽！</title>
		<link>http://blog.openider.com/archives/155</link>
		<comments>http://blog.openider.com/archives/155#comments</comments>
		<pubDate>Tue, 30 Jun 2009 18:13:51 +0000</pubDate>
		<dc:creator>Guya</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[5.3]]></category>

		<guid isPermaLink="false">http://www.mmclub.net/?p=155</guid>
		<description><![CDATA[今天晚上打开 php.net 一看， 5.3.0 的正式版已经发布。 刚刚手头有台机器刚装了 ubuntu, 编译了一下 LAMP 系统， PHP 5.3.0 改动比较大。 第一眼看到的 php.ini 文件里已经变动了。 感觉比一以前版本的舒服点了。 有了开发环境和生产环境的配置区分了。 详细的以后慢慢了解了。 貌似增强了很多功能。 从 phpinfo() 里看出来的。 放出一张刚测试出的phpinfo()截图, 后面张贴一下本次编译的命令记录。
看看编译的一堆命令。 有需要的朋友可以拿去参考一下。

1
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
sudo apt-get install build-essential gcc make autoconf automake1.9 libtool
&#160;
sudo apt-get install zlib1g-dev libdb-dev
&#160;
tar -jxf apr-1.3.5.tar.bz2 -C ../builds/
tar -jxf apr-util-1.3.7.tar.bz2 -C ../builds/
tar -zxf httpd-2.2.11.tar.gz -C ../builds/
&#160;
cd ../builds/
cd apr-1.3.5/
./configure 
make
sudo make install
&#160;
cd [...]]]></description>
		<wfw:commentRss>http://blog.openider.com/archives/155/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
