<?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>gjw_apparitor 博客 &#187; Service</title>
	<atom:link href="http://www.apparitor.info/category/service/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.apparitor.info</link>
	<description>孤独是一种态度</description>
	<lastBuildDate>Wed, 16 May 2012 07:36:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>F5 V11 Analytics 功能试用</title>
		<link>http://www.apparitor.info/2011/10/25/410/</link>
		<comments>http://www.apparitor.info/2011/10/25/410/#comments</comments>
		<pubDate>Tue, 25 Oct 2011 02:03:50 +0000</pubDate>
		<dc:creator>gjw_apparitor</dc:creator>
				<category><![CDATA[Lvs]]></category>

		<guid isPermaLink="false">http://www.apparitor.info/2011/10/25/410/</guid>
		<description><![CDATA[9月份 F5发布新的版本 V11，性能和功能都提升了不少。 1、Analytics模块开启： System ›› Resource Provisioning 里 开启 Application Visibility and Reporting (AVR) 这个模块。 2、在VS里 Analytics Profile 选择 analytics. 3、过10多分钟后会在 Overview ›› Statistics : Analytics 里看到一些数据。 例： 所有Response Code的统计和TPS 所有Pool Member的TPS 等 &#160; &#160; URLs：显示每个URL的TPS，方便查出哪个URL的时间最长。对研发和运维的帮助都很大。 功能非常强大，有图有数据。非常不错。 &#160; 原创文章，转载请注明： 转载自gjw_apparitor 博客 本文链接地址: F5 V11 Analytics 功能试用]]></description>
			<content:encoded><![CDATA[<p>9月份 F5发布新的版本 V11，性能和功能都提升了不少。<br />
1、Analytics模块开启：<br />
System ›› Resource Provisioning 里 开启 Application Visibility and Reporting (AVR) 这个模块。<br />
2、在VS里 Analytics Profile 选择 analytics.<br />
3、过10多分钟后会在 Overview ›› Statistics : Analytics 里看到一些数据。</p>
<p>例：</p>
<p>所有Response Code的统计和TPS</p>
<p><a href="http://www.apparitor.info/wp-content/uploads/2011/10/Screenshot-2011-10-25-100151.png"><img class="alignnone size-medium wp-image-411" title="Screenshot-2011-10-25 10:01:51" src="http://www.apparitor.info/wp-content/uploads/2011/10/Screenshot-2011-10-25-100151-300x156.png" alt="" width="300" height="156" /></a></p>
<p>所有Pool Member的TPS 等</p>
<p><a href="http://www.apparitor.info/wp-content/uploads/2011/10/Screenshot-111.png"><img class="alignnone size-medium wp-image-415" title="Screenshot-111" src="http://www.apparitor.info/wp-content/uploads/2011/10/Screenshot-111-300x196.png" alt="" width="300" height="196" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>URLs：显示每个URL的TPS，方便查出哪个URL的时间最长。对研发和运维的帮助都很大。</p>
<p>功能非常强大，有图有数据。非常不错。</p>
<p>&nbsp;
<div style="margin-top: 15px; font-style: italic">
<p><strong>原创文章，转载请注明：</strong> 转载自<a href="http://www.apparitor.info/">gjw_apparitor 博客</a></p>
<p><strong>本文链接地址:</strong> <a href="http://www.apparitor.info/2011/10/25/410/">F5 V11 Analytics 功能试用</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.apparitor.info/2011/10/25/410/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>F5 的 uri hash的应用。</title>
		<link>http://www.apparitor.info/2011/07/14/f5-%e7%9a%84-uri-hash%e7%9a%84%e5%ba%94%e7%94%a8%e3%80%82/</link>
		<comments>http://www.apparitor.info/2011/07/14/f5-%e7%9a%84-uri-hash%e7%9a%84%e5%ba%94%e7%94%a8%e3%80%82/#comments</comments>
		<pubDate>Thu, 14 Jul 2011 06:52:44 +0000</pubDate>
		<dc:creator>gjw_apparitor</dc:creator>
				<category><![CDATA[Lvs]]></category>
		<category><![CDATA[F5]]></category>

		<guid isPermaLink="false">http://www.apparitor.info/?p=370</guid>
		<description><![CDATA[参考：http://www.f5lab.cn/bbs/viewthread.php?action=printable&#038;tid=487 作者: metoo 时间: 2008-7-21 02:12 通过Election Hash，可以在URI hash分配Cache的基础上，有效的避免Cache服务器的重分布问题。 rules如下： # Election Hash iRule # Compute Hash &#8211; MD5 # Version 3.0 Dec 4th 2007 # # MD5 calculation of Server + URI # Rule selects Server that scores highest # # S = Current high score # N = Node being evaluated # W]]></description>
			<content:encoded><![CDATA[<p>参考：http://www.f5lab.cn/bbs/viewthread.php?action=printable&#038;tid=487</p>
<p>作者: metoo    时间: 2008-7-21 02:12<br />
通过Election Hash，可以在URI hash分配Cache的基础上，有效的避免Cache服务器的重分布问题。<br />
rules如下：<br />
#  Election Hash iRule<br />
#  Compute Hash &#8211; MD5<br />
# Version 3.0 Dec 4th 2007<br />
#<br />
#  MD5 calculation of Server + URI<br />
#  Rule selects Server that scores highest<br />
#<br />
# S = Current high score<br />
# N = Node being evaluated<br />
# W = Winning node<br />
#<br />
# Change “myPool” to your pool name.<br />
#</p>
<p>when HTTP_REQUEST {<br />
  set S “”<br />
  foreach N [active_members -list myPool] {<br />
    if { [md5 $N[HTTP::uri]] > $S } {<br />
      set S [md5 $N[HTTP::uri]]<br />
      set W $N<br />
    }<br />
  }<br />
  pool myPool member [lindex $W 0] [lindex $W 1]<br />
}</p>
<p>优点：避免了原来hash取模的方式，一台设备down掉所有hash表重算的问题。<br />
缺点：每条URI需要计算N次，N=活动的节点数。如果N很大非常耗费CPU资源。
<div style="margin-top: 15px; font-style: italic">
<p><strong>原创文章，转载请注明：</strong> 转载自<a href="http://www.apparitor.info/">gjw_apparitor 博客</a></p>
<p><strong>本文链接地址:</strong> <a href="http://www.apparitor.info/2011/07/14/f5-%e7%9a%84-uri-hash%e7%9a%84%e5%ba%94%e7%94%a8%e3%80%82/">F5 的 uri hash的应用。</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.apparitor.info/2011/07/14/f5-%e7%9a%84-uri-hash%e7%9a%84%e5%ba%94%e7%94%a8%e3%80%82/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nginx指定某个文件不能缓存</title>
		<link>http://www.apparitor.info/2011/07/11/nginx%e6%8c%87%e5%ae%9a%e6%9f%90%e4%b8%aa%e6%96%87%e4%bb%b6%e4%b8%8d%e8%83%bd%e7%bc%93%e5%ad%98/</link>
		<comments>http://www.apparitor.info/2011/07/11/nginx%e6%8c%87%e5%ae%9a%e6%9f%90%e4%b8%aa%e6%96%87%e4%bb%b6%e4%b8%8d%e8%83%bd%e7%bc%93%e5%ad%98/#comments</comments>
		<pubDate>Mon, 11 Jul 2011 05:12:49 +0000</pubDate>
		<dc:creator>gjw_apparitor</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://www.apparitor.info/?p=367</guid>
		<description><![CDATA[nginx配置了所有图片都缓存，想让某个图盘不被缓存用于监控使用。 一开始指定 expires 为“0“和“-1“都不好用，反回的是403不是200. 添加一个header头为no cache还是不好用，用chrome浏览器还是会显示403。 最后把no cache改为 no-store后正常。 配置为： location ~* nocache\.jpg$ { add_header Cache-Control no-store; } 原创文章，转载请注明： 转载自gjw_apparitor 博客 本文链接地址: nginx指定某个文件不能缓存]]></description>
			<content:encoded><![CDATA[<p>nginx配置了所有图片都缓存，想让某个图盘不被缓存用于监控使用。</p>
<p>一开始指定 expires 为“0“和“-1“都不好用，反回的是403不是200.<br />
添加一个header头为no cache还是不好用，用chrome浏览器还是会显示403。<br />
最后把no cache改为 no-store后正常。<br />
配置为：<br />
                location ~* nocache\.jpg$ {<br />
			add_header Cache-Control no-store;<br />
                }
<div style="margin-top: 15px; font-style: italic">
<p><strong>原创文章，转载请注明：</strong> 转载自<a href="http://www.apparitor.info/">gjw_apparitor 博客</a></p>
<p><strong>本文链接地址:</strong> <a href="http://www.apparitor.info/2011/07/11/nginx%e6%8c%87%e5%ae%9a%e6%9f%90%e4%b8%aa%e6%96%87%e4%bb%b6%e4%b8%8d%e8%83%bd%e7%bc%93%e5%ad%98/">nginx指定某个文件不能缓存</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.apparitor.info/2011/07/11/nginx%e6%8c%87%e5%ae%9a%e6%9f%90%e4%b8%aa%e6%96%87%e4%bb%b6%e4%b8%8d%e8%83%bd%e7%bc%93%e5%ad%98/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>移动IP库更新</title>
		<link>http://www.apparitor.info/2011/06/08/%e7%a7%bb%e5%8a%a8ip%e5%ba%93%e6%9b%b4%e6%96%b0/</link>
		<comments>http://www.apparitor.info/2011/06/08/%e7%a7%bb%e5%8a%a8ip%e5%ba%93%e6%9b%b4%e6%96%b0/#comments</comments>
		<pubDate>Wed, 08 Jun 2011 09:36:40 +0000</pubDate>
		<dc:creator>gjw_apparitor</dc:creator>
				<category><![CDATA[Dns]]></category>
		<category><![CDATA[IP库]]></category>

		<guid isPermaLink="false">http://www.apparitor.info/?p=364</guid>
		<description><![CDATA[移动IP库更新 移动 203.91.96.0/20 移动 219.232.64.0/19 移动 211.103.0.0/17 移动 211.136.0.0/13 移动 211.142.0.0/15 移动 218.200.0.0/13 移动 218.206.0.0/15 移动 221.130.0.0/15 移动 221.176.0.0/13 移动 117.128.0.0/10 移动 120.192.0.0/10 移动 112.0.0.0/10 移动 111.0.0.0/10 移动 183.192.0.0/10 原创文章，转载请注明： 转载自gjw_apparitor 博客 本文链接地址: 移动IP库更新]]></description>
			<content:encoded><![CDATA[<p>移动IP库更新</p>
<p>移动	203.91.96.0/20<br />
移动	219.232.64.0/19<br />
移动	211.103.0.0/17<br />
移动	211.136.0.0/13<br />
移动	211.142.0.0/15<br />
移动	218.200.0.0/13<br />
移动	218.206.0.0/15<br />
移动	221.130.0.0/15<br />
移动	221.176.0.0/13<br />
移动	117.128.0.0/10<br />
移动	120.192.0.0/10<br />
移动	112.0.0.0/10<br />
移动	111.0.0.0/10<br />
移动	183.192.0.0/10	</p>
<div style="margin-top: 15px; font-style: italic">
<p><strong>原创文章，转载请注明：</strong> 转载自<a href="http://www.apparitor.info/">gjw_apparitor 博客</a></p>
<p><strong>本文链接地址:</strong> <a href="http://www.apparitor.info/2011/06/08/%e7%a7%bb%e5%8a%a8ip%e5%ba%93%e6%9b%b4%e6%96%b0/">移动IP库更新</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.apparitor.info/2011/06/08/%e7%a7%bb%e5%8a%a8ip%e5%ba%93%e6%9b%b4%e6%96%b0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>非常好的页面速度分析工具 Page Speed</title>
		<link>http://www.apparitor.info/2011/05/17/%e9%9d%9e%e5%b8%b8%e5%a5%bd%e7%9a%84%e9%a1%b5%e9%9d%a2%e9%80%9f%e5%ba%a6%e5%88%86%e6%9e%90%e5%b7%a5%e5%85%b7-page-speed/</link>
		<comments>http://www.apparitor.info/2011/05/17/%e9%9d%9e%e5%b8%b8%e5%a5%bd%e7%9a%84%e9%a1%b5%e9%9d%a2%e9%80%9f%e5%ba%a6%e5%88%86%e6%9e%90%e5%b7%a5%e5%85%b7-page-speed/#comments</comments>
		<pubDate>Tue, 17 May 2011 08:21:55 +0000</pubDate>
		<dc:creator>gjw_apparitor</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[Page Speed]]></category>

		<guid isPermaLink="false">http://www.apparitor.info/?p=353</guid>
		<description><![CDATA[Page Speed 是 Google Chrome 用来网页速度测试工具 ，不过由于使用了实验性的API，所以该扩展只在Google Code提供下载测试。 URL：http://code.google.com/intl/zh-CN/speed/page-speed/docs/using_chrome.html 按照上边的步骤去安装 Page Speed 最后测试了一下公司的主页 Page Speed Score: 68/100 叫我情何以堪！ 原创文章，转载请注明： 转载自gjw_apparitor 博客 本文链接地址: 非常好的页面速度分析工具 Page Speed]]></description>
			<content:encoded><![CDATA[<p>Page Speed 是 Google Chrome 用来网页速度测试工具 ，不过由于使用了实验性的API，所以该扩展只在Google Code提供下载测试。</p>
<p>URL：http://code.google.com/intl/zh-CN/speed/page-speed/docs/using_chrome.html</p>
<p>按照上边的步骤去安装 Page Speed</p>
<p>最后测试了一下公司的主页 </p>
<p>Page Speed Score: 68/100</p>
<p>叫我情何以堪！
<div style="margin-top: 15px; font-style: italic">
<p><strong>原创文章，转载请注明：</strong> 转载自<a href="http://www.apparitor.info/">gjw_apparitor 博客</a></p>
<p><strong>本文链接地址:</strong> <a href="http://www.apparitor.info/2011/05/17/%e9%9d%9e%e5%b8%b8%e5%a5%bd%e7%9a%84%e9%a1%b5%e9%9d%a2%e9%80%9f%e5%ba%a6%e5%88%86%e6%9e%90%e5%b7%a5%e5%85%b7-page-speed/">非常好的页面速度分析工具 Page Speed</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.apparitor.info/2011/05/17/%e9%9d%9e%e5%b8%b8%e5%a5%bd%e7%9a%84%e9%a1%b5%e9%9d%a2%e9%80%9f%e5%ba%a6%e5%88%86%e6%9e%90%e5%b7%a5%e5%85%b7-page-speed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>移动IP库</title>
		<link>http://www.apparitor.info/2011/05/17/%e7%a7%bb%e5%8a%a8ip%e5%ba%93/</link>
		<comments>http://www.apparitor.info/2011/05/17/%e7%a7%bb%e5%8a%a8ip%e5%ba%93/#comments</comments>
		<pubDate>Tue, 17 May 2011 02:36:12 +0000</pubDate>
		<dc:creator>gjw_apparitor</dc:creator>
				<category><![CDATA[Dns]]></category>
		<category><![CDATA[ip]]></category>

		<guid isPermaLink="false">http://www.apparitor.info/?p=348</guid>
		<description><![CDATA[最近公司和移动运营商有合作，有机会跟他们要到了移动资源的IP库，来更新我的DNS IP列表。 他们给的IP表有的是带掩码位的、有的是用结束段显示的。用了自己以前写的IP格式转换脚本将他们格式统一。 现在提供给大家。有不全或错误的还请大家指正。 0 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]]></description>
			<content:encoded><![CDATA[<p>最近公司和移动运营商有合作，有机会跟他们要到了移动资源的IP库，来更新我的DNS IP列表。<br />
他们给的IP表有的是带掩码位的、有的是用结束段显示的。用了自己以前写的IP格式转换脚本将他们格式统一。<br />
现在提供给大家。有不全或错误的还请大家指正。</p>
<p><span id="more-348"></span></p>

<div class="wp_codebox"><table><tr id="p3482"><td class="line_numbers"><pre>0
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
</pre></td><td class="code" id="p348code2"><pre class="text" style="font-family:monospace;">起始段	结束段	掩码
211.136.0.0	211.136.31.255	19
218.200.240.0	218.200.255.255	20
221.176.0.0	221.176.15.255	20
221.176.16.0	221.176.31.255	20
221.130.208.0	221.130.211.255	22
221.130.212.0	221.130.223.255	20
221.130.224.0	221.130.255.255	19
218.206.190.0	218.206.191.255	23
218.207.224.0	218.207.225.255	23
221.177.0.0	221.177.255.255	16
117.128.0.0	117.128.7.255	21
221.183.0.0	221.183.255.255	16
218.206.176.0	218.206.179.255	22
218.207.235.0	218.207.255.255	19
211.136.24.0	211.136.127.255	17
218.205.128.0	218.205.255.255	17
218.206.64.0	218.206.95.255	19
221.179.128.0	221.179.255.255	17
221.130.32.0	221.130.47.255	20
117.128.8.0	117.131.255.255	14
117.133.0.0	117.135.255.255	14
111.13.0.0	111.13.255.255	16
211.136.96.0	211.136.255.255	16
218.202.224.0	218.202.255.255	19
221.130.176.0	221.130.255.255	17
221.181.64.0	221.181.127.255	18
117.131.0.0	117.131.127.255	17
117.135.0.0	117.135.255.255	16
120.204.0.0	120.204.255.255	16
183.192.0.0	183.192.255.255	16
183.193.0.0	183.193.255.255	16
211.136.192.0	211.136.255.255	18
211.139.128.0	211.139.255.255	17
218.204.160.0	218.204.255.255	17
221.179.0.0	221.179.127.255	17
120.196.0.0	120.196.255.255	16
120.197.0.0	120.197.255.255	16
120.198.0.0	120.198.255.255	16
211.137.0.0	211.137.63.255	18
211.140.192.0	211.140.255.255	18
221.180.128.0	221.180.255.255	17
117.132.96.0	117.132.255.255	16
120.200.0.0	120.200.255.255	16
120.201.0.0	120.201.255.255	16
211.137.48.0	211.137.127.255	17
218.200.64.0	218.200.255.255	16
120.202.0.0	120.202.255.255	16
111.4.0.0	111.4.255.255	16
211.137.80.0	211.137.127.255	18
218.200.160.0	218.200.255.255	17
218.203.224.0	218.203.255.255	19
218.205.224.0	218.205.255.255	19
221.182.0.0	221.182.127.255	17
111.9.0.0	111.9.255.255	16
117.139.0.0	117.139.255.255	16
211.137.112.0	211.137.255.255	16
218.200.0.0	218.200.63.255	18
120.192.192.0	120.192.255.255	18
111.20.0.0	111.20.255.255	16
211.137.144.0	211.137.191.255	18
211.103.80.0	211.103.95.255	20
117.131.128.0	117.131.255.255	17
211.137.176.0	211.137.255.255	17
218.201.96.0	218.201.255.255	16
120.192.0.0	120.192.255.255	16
117.132.0.0	117.132.127.255	17
111.14.0.0	111.14.255.255	16
111.15.0.0	111.15.255.255	16
211.137.208.0	211.137.223.255	20
211.141.0.0	211.141.127.255	17
211.137.224.0	211.137.255.255	19
218.203.0.0	218.203.127.255	17
211.138.0.0	211.138.15.255	20
211.143.48.0	211.143.255.255	16
218.207.64.0	218.207.95.255	19
117.132.144.0	117.132.191.255	18
183.196.0.0	183.196.255.255	16
183.197.0.0	183.197.255.255	16
111.11.0.0	111.11.127.255	17
211.138.16.0	211.138.31.255	20
211.142.96.0	211.142.255.255	16
218.206.192.0	218.206.255.255	18
221.176.96.0	221.176.255.255	16
120.194.0.0	120.194.255.255	16
111.5.0.0	111.5.255.255	16
111.7.0.0	111.7.255.255	16
211.138.32.0	211.138.47.255	20
218.202.144.0	218.202.255.255	17
221.181.0.0	221.181.63.255	18
120.205.0.0	120.205.255.255	16
211.138.48.0	211.138.63.255	20
218.203.96.0	218.203.255.255	16
211.138.64.0	211.138.79.255	20
218.206.160.0	218.206.175.255	20
111.12.128.0	111.12.255.255	17
211.138.80.0	211.138.95.255	20
218.202.64.0	218.202.255.255	16
120.193.128.0	120.193.255.255	17
117.137.0.0	117.137.255.255	16
211.138.96.0	211.138.111.255	20
211.142.0.0	211.142.127.255	17
221.131.0.0	221.131.63.255	18
221.180.0.0	221.180.63.255	18
120.207.0.0	120.207.255.255	16
120.208.0.0	120.208.255.255	16
183.200.0.0	183.200.255.255	16
183.201.0.0	183.201.255.255	16
211.138.112.0	211.138.255.255	16
211.140.0.0	211.140.255.255	16
218.205.48.0	218.205.127.255	17
221.131.192.0	221.131.255.255	18
120.193.0.0	120.193.63.255	18
120.199.0.0	120.199.255.255	16
111.0.0.0	111.0.255.255	16
111.1.0.0	111.1.255.255	16
111.2.0.0	111.2.255.255	16
111.3.0.0	111.3.255.255	16
211.138.132.0	211.138.159.255	19
211.143.144.0	211.143.255.255	17
218.207.96.0	218.207.255.255	16
112.5.0.0	112.5.255.255	16
211.138.160.0	211.138.175.255	20
221.176.80.0	221.176.95.255	20
221.182.128.0	221.182.255.255	17
211.138.176.0	211.138.191.255	20
211.141.160.0	211.141.255.255	17
221.130.112.0	221.130.255.255	16
120.193.64.0	120.193.127.255	18
120.209.0.0	120.209.255.255	16
120.210.0.0	120.210.255.255	16
211.138.192.0	211.138.207.255	20
211.103.0.0	211.103.127.255	17
211.103.96.0	211.103.127.255	19
211.139.96.0	211.139.127.255	19
211.143.224.0	211.143.255.255	19
218.205.0.0	218.205.63.255	18
218.206.96.0	218.206.255.255	16
221.130.0.0	221.130.31.255	19
221.131.64.0	221.131.255.255	16
221.130.48.0	221.130.127.255	17
221.178.128.0	221.178.255.255	17
221.181.128.0	221.181.255.255	17
120.195.0.0	120.195.255.255	16
112.0.0.0	112.7.255.255	13
211.138.208.0	211.138.223.255	20
211.141.80.0	211.141.255.255	16
218.204.64.0	218.204.255.255	16
120.203.0.0	120.203.255.255	16
120.206.0.0	120.206.255.255	16
211.138.224.0	211.138.239.255	20
211.142.208.0	211.142.255.255	18
211.143.0.0	211.143.63.255	18
111.8.0.0	111.8.255.255	16
211.138.240.0	211.138.255.255	20
218.204.0.0	218.204.63.255	18
221.180.64.0	221.180.127.255	18
111.12.0.0	111.12.127.255	17
117.141.0.0	117.141.255.255	16
211.139.0.0	211.139.15.255	20
218.201.192.0	218.201.255.255	18
117.135.192.0	117.135.255.255	18
211.139.16.0	211.139.31.255	20
218.202.0.0	218.202.63.255	18
218.206.32.0	218.206.63.255	19
211.139.32.0	211.139.63.255	19
218.201.0.0	218.201.127.255	17
218.206.0.0	218.206.31.255	19
218.207.0.0	218.207.63.255	18
221.178.0.0	221.178.127.255	17
111.10.0.0	111.10.127.255	17
211.139.64.0	211.139.79.255	20
111.11.192.0	111.11.255.255	18
211.139.80.0	211.139.95.255	20
218.203.160.0	218.203.255.255	17
111.11.128.0	111.11.191.255	18
221.176.64.0	221.176.79.255	20</pre></td></tr></table></div>

<div style="margin-top: 15px; font-style: italic">
<p><strong>原创文章，转载请注明：</strong> 转载自<a href="http://www.apparitor.info/">gjw_apparitor 博客</a></p>
<p><strong>本文链接地址:</strong> <a href="http://www.apparitor.info/2011/05/17/%e7%a7%bb%e5%8a%a8ip%e5%ba%93/">移动IP库</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.apparitor.info/2011/05/17/%e7%a7%bb%e5%8a%a8ip%e5%ba%93/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>解决 rsync error while loading shared libraries: libiconv.so.2</title>
		<link>http://www.apparitor.info/2011/05/16/%e8%a7%a3%e5%86%b3-rsync-error-while-loading-shared-libraries-libiconv-so-2/</link>
		<comments>http://www.apparitor.info/2011/05/16/%e8%a7%a3%e5%86%b3-rsync-error-while-loading-shared-libraries-libiconv-so-2/#comments</comments>
		<pubDate>Mon, 16 May 2011 02:49:29 +0000</pubDate>
		<dc:creator>gjw_apparitor</dc:creator>
				<category><![CDATA[Service]]></category>
		<category><![CDATA[rsync]]></category>

		<guid isPermaLink="false">http://www.apparitor.info/?p=345</guid>
		<description><![CDATA[今天装了个源码包的rsync,启动的时候报错。 # /usr/local/rsyncd/bin/rsync --help /usr/local/rsyncd/bin/rsync: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory 找不到共享库文件 libiconv.so.2 。用ldd查看一下，确实找不到这个文件。 # ldd /usr/local/rsyncd/bin/rsync libpopt.so.0 => /usr/lib64/libpopt.so.0 (0x0000003f7ba00000) libiconv.so.2 => not found libc.so.6 => /lib64/libc.so.6 (0x0000003f77200000) /lib64/ld-linux-x86-64.so.2 (0x0000003f76e00000) 查一下libiconv.so.2文件在哪个目录 # whereis libiconv.so.2 libiconv.so: /usr/local/lib/libiconv.so /usr/local/lib/libiconv.so.2 将&#8217;/usr/local/lib/&#8217; 加入到动态链接库的路径 # echo "/usr/local/lib/" >> vi]]></description>
			<content:encoded><![CDATA[<p>今天装了个源码包的rsync,启动的时候报错。</p>
<pre> # /usr/local/rsyncd/bin/rsync --help
/usr/local/rsyncd/bin/rsync: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory</pre>
<p>找不到共享库文件  libiconv.so.2 。用ldd查看一下，确实找不到这个文件。</p>
<pre># ldd /usr/local/rsyncd/bin/rsync
	libpopt.so.0 => /usr/lib64/libpopt.so.0 (0x0000003f7ba00000)
	libiconv.so.2 => not found
	libc.so.6 => /lib64/libc.so.6 (0x0000003f77200000)
	/lib64/ld-linux-x86-64.so.2 (0x0000003f76e00000)</pre>
<p>查一下libiconv.so.2文件在哪个目录</p>
<pre># whereis libiconv.so.2
libiconv.so: /usr/local/lib/libiconv.so /usr/local/lib/libiconv.so.2</pre>
<p>将&#8217;/usr/local/lib/&#8217; 加入到动态链接库的路径</p>
<pre># echo "/usr/local/lib/" >> vi /etc/ld.so.conf</pre>
<p>更新一下新的库文件</p>
<pre># ldconfig</pre>
<div style="margin-top: 15px; font-style: italic">
<p><strong>原创文章，转载请注明：</strong> 转载自<a href="http://www.apparitor.info/">gjw_apparitor 博客</a></p>
<p><strong>本文链接地址:</strong> <a href="http://www.apparitor.info/2011/05/16/%e8%a7%a3%e5%86%b3-rsync-error-while-loading-shared-libraries-libiconv-so-2/">解决 rsync error while loading shared libraries: libiconv.so.2</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.apparitor.info/2011/05/16/%e8%a7%a3%e5%86%b3-rsync-error-while-loading-shared-libraries-libiconv-so-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>F5 3900 V10同步错误</title>
		<link>http://www.apparitor.info/2011/05/03/f5-3900-v10%e5%90%8c%e6%ad%a5%e9%94%99%e8%af%af/</link>
		<comments>http://www.apparitor.info/2011/05/03/f5-3900-v10%e5%90%8c%e6%ad%a5%e9%94%99%e8%af%af/#comments</comments>
		<pubDate>Tue, 03 May 2011 03:54:28 +0000</pubDate>
		<dc:creator>gjw_apparitor</dc:creator>
				<category><![CDATA[Lvs]]></category>
		<category><![CDATA[F5]]></category>

		<guid isPermaLink="false">http://www.apparitor.info/?p=342</guid>
		<description><![CDATA[F5双机同步使用的admin帐号。并对admin的密码长度做了限制，如果密码字符超过29位同步会出现错误，无法同步成功。 原创文章，转载请注明： 转载自gjw_apparitor 博客 本文链接地址: F5 3900 V10同步错误]]></description>
			<content:encoded><![CDATA[<p>F5双机同步使用的admin帐号。并对admin的密码长度做了限制，如果密码字符超过29位同步会出现错误，无法同步成功。</p>
<div style="margin-top: 15px; font-style: italic">
<p><strong>原创文章，转载请注明：</strong> 转载自<a href="http://www.apparitor.info/">gjw_apparitor 博客</a></p>
<p><strong>本文链接地址:</strong> <a href="http://www.apparitor.info/2011/05/03/f5-3900-v10%e5%90%8c%e6%ad%a5%e9%94%99%e8%af%af/">F5 3900 V10同步错误</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.apparitor.info/2011/05/03/f5-3900-v10%e5%90%8c%e6%ad%a5%e9%94%99%e8%af%af/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Resin 3.1配置文件详解</title>
		<link>http://www.apparitor.info/2011/04/07/resin-3-1%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6%e8%af%a6%e8%a7%a3-2/</link>
		<comments>http://www.apparitor.info/2011/04/07/resin-3-1%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6%e8%af%a6%e8%a7%a3-2/#comments</comments>
		<pubDate>Thu, 07 Apr 2011 08:43:00 +0000</pubDate>
		<dc:creator>gjw_apparitor</dc:creator>
				<category><![CDATA[Service]]></category>
		<category><![CDATA[resin]]></category>

		<guid isPermaLink="false">http://www.apparitor.info/?p=321</guid>
		<description><![CDATA[0 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]]></description>
			<content:encoded><![CDATA[
<div class="wp_codebox"><table><tr id="p3214"><td class="line_numbers"><pre>0
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
</pre></td><td class="code" id="p321code4"><pre class="text" style="font-family:monospace;">&lt;!-- Resin 3.1 configuration file. （Resin 3.1 配置文件）--&gt;
&nbsp;
&lt;resin xmlns=&quot;http://caucho.com/ns/resin&quot; xmlns:resin=&quot;http://caucho.com/ns/resin/core&quot;&gt;
&nbsp;
  &lt;!-- adds all .jar files under the resin/lib directory （加载 resin/lib 下的所有.jar文件） --&gt;
  &lt;class-loader&gt;
    &lt;tree-loader path=&quot;${resin.home}/ext-lib&quot;/&gt;
    &lt;tree-loader path=&quot;${resin.root}/ext-lib&quot;/&gt;
    &lt;tree-loader path=&quot;${resin.home}/lib&quot;/&gt;
    &lt;tree-loader path=&quot;${resin.root}/lib&quot;/&gt;
  &lt;/class-loader&gt;
&lt;span id=&quot;more-321&quot;&gt;&lt;/span&gt;
  &lt;!--Management configuration Remote management requires at least one enabled admin user.(管理配置,需要一个管理员用户)--&gt;
  &lt;management path=&quot;${resin.root}/admin&quot;&gt;
    &lt;user name=&quot;admin&quot; password=&quot;password&quot; disable=&quot;true&quot;/&gt;
    &lt;resin:if test=&quot;${resin.professional}&quot;&gt;
      &lt;deploy-service/&gt;
      &lt;jmx-service/&gt;
      &lt;log-service/&gt;
      &lt;xa-log-service/&gt;
    &lt;/resin:if&gt;
  &lt;/management&gt;
&nbsp;
  &lt;!--Logging configuration for the JDK logging API.(JDK日志配置)--&gt;
  &lt;log name=&quot;&quot; level=&quot;info&quot; path=&quot;stdout:&quot;
       timestamp=&quot;[%H:%M:%S.%s] {%{thread}} &quot;/&gt;
&nbsp;
  &lt;!-- 'info' for production 'fine' or 'finer' for development and troubleshooting (日志信息级别：info生产环境 fine和finer适合开发环境和调试环境)--&gt;
  &lt;logger name=&quot;com.caucho&quot; level=&quot;info&quot;/&gt;
  &lt;logger name=&quot;com.caucho.java&quot; level=&quot;config&quot;/&gt;
  &lt;logger name=&quot;com.caucho.loader&quot; level=&quot;config&quot;/&gt;
&nbsp;
  &lt;!--For production sites, change dependency-check-interval to something like 600s, so it only checks for updates every 10 minutes.(环境依赖检查时间，生产系统设置长点，600s 10分钟)--&gt;
  &lt;dependency-check-interval&gt;2s&lt;/dependency-check-interval&gt;
&nbsp;
  &lt;!-- SMTP server for sending mail notifications （SMTP服务器配置）--&gt;
  &lt;system-property mail.smtp.host=&quot;127.0.0.1&quot;/&gt;
  &lt;system-property mail.smtp.port=&quot;25&quot;/&gt;
&nbsp;
  &lt;!-- Sets the default character encoding to utf-8 &lt;character-encoding&gt;utf-8&lt;/character-encoding&gt; (默认字符集为 utf-8 ) --&gt;
&nbsp;
  &lt;!-- You can change the compiler to &quot;javac&quot;, &quot;eclipse&quot; or &quot;internal&quot;.(你可以把编译器改成 javac、eclipse 或 internal)--&gt;
  &lt;javac compiler=&quot;internal&quot; args=&quot;-source 1.5&quot;/&gt;
&nbsp;
  &lt;!-- Security providers. &lt;security-provider&gt; com.sun.net.ssl.internal.ssl.Provider &lt;/security-provider&gt; (SSL 安全)--&gt;
&nbsp;
  &lt;!-- Uncomment to use Resin's XML implementations
     - &lt;system-property javax.xml.parsers.DocumentBuilderFactory
     -                 =&quot;com.caucho.xml.parsers.XmlDocumentBuilderFactory&quot;/&gt;
     - &lt;system-property javax.xml.parsers.SAXParserFactory
     -                 =&quot;com.caucho.xml.parsers.XmlSAXParserFactory&quot;/&gt;
    (去掉注视，可以使用resin提供的xml应用)
     --&gt; 
&nbsp;
  &lt;cluster id=&quot;app-tier&quot;&gt;
    &lt;!-- sets the content root for the cluster, relative to server.root  (设置集群的根目录)--&gt;
    &lt;root-directory&gt;.&lt;/root-directory&gt;
&nbsp;
    &lt;server-default&gt;
      &lt;!-- The http port (http服务的端口)--&gt;
      &lt;http address=&quot;*&quot; port=&quot;8080&quot;/&gt;
&nbsp;
      &lt;!-- SSL port configuration:
         - &lt;http address=&quot;*&quot; port=&quot;8443&quot;&gt;
         -   &lt;openssl&gt;
         -     &lt;certificate-file&gt;keys/gryffindor.crt&lt;/certificate-file&gt;
         -     &lt;certificate-key-file&gt;keys/gryffindor.key&lt;/certificate-key-file&gt;
         -     &lt;password&gt;test123&lt;/password&gt;
         -   &lt;/openssl&gt;
         - &lt;/http&gt;  (SSL配置)
        --&gt;
&nbsp;
      &lt;!-- The JVM arguments (JVM参数设置)--&gt;
      &lt;jvm-arg&gt;-Xmx256m&lt;/jvm-arg&gt;
      &lt;jvm-arg&gt;-Xss1m&lt;/jvm-arg&gt;
      &lt;jvm-arg&gt;-Xdebug&lt;/jvm-arg&gt;
      &lt;jvm-arg&gt;-Dcom.sun.management.jmxremote&lt;/jvm-arg&gt;
&nbsp;
      &lt;!-- Uncomment to enable admin heap dumps  (去掉注释 你可以自己管理内存堆)
 - &lt;jvm-arg&gt;-agentlib:resin&lt;/jvm-arg&gt; --&gt;
&nbsp;
      &lt;!-- arguments for the watchdog process (配置watchdog)--&gt;
      &lt;watchdog-jvm-arg&gt;-Dcom.sun.management.jmxremote&lt;/watchdog-jvm-arg&gt;
      &lt;watchdog-port&gt;6600&lt;/watchdog-port&gt;
&nbsp;
      &lt;!-- Configures the minimum free memory allowed before Resin will force a restart.（配置resin强制重启时的最小空闲内存）--&gt;
      &lt;memory-free-min&gt;1M&lt;/memory-free-min&gt;
&nbsp;
      &lt;!-- Maximum number of threads.(最大线程数量) --&gt;
      &lt;thread-max&gt;256&lt;/thread-max&gt;
&nbsp;
      &lt;!-- Configures the socket timeout (套接字超时时间) --&gt;
      &lt;socket-timeout&gt;65s&lt;/socket-timeout&gt;
&nbsp;
      &lt;!-- Configures the keepalive (keepalive 的最大链接数和keepalive的超时时间)--&gt;
      &lt;keepalive-max&gt;128&lt;/keepalive-max&gt;
      &lt;keepalive-timeout&gt;15s&lt;/keepalive-timeout&gt;
&nbsp;
      &lt;!--
         - If starting bin/resin as root on Unix, specify the user name
         - and group name for the web server user.(使用unix系统时 启动resin的用户和组)
         - &lt;user-name&gt;resin&lt;/user-name&gt;
         - &lt;group-name&gt;resin&lt;/group-name&gt;
        --&gt;
&nbsp;
    &lt;/server-default&gt;
&nbsp;
    &lt;!-- define the servers in the cluster  (定义集群服务器)--&gt;
    &lt;server id=&quot;&quot; address=&quot;127.0.0.1&quot; port=&quot;6800&quot;/&gt;
&nbsp;
    &lt;!-- Configures the persistent store for single-server or clustered in Resin professional.(配置独立或集群的持久化存储，专业版功能) --&gt;
    &lt;resin:if test=&quot;${resin.professional}&quot;&gt;
      &lt;persistent-store type=&quot;cluster&quot;&gt;
        &lt;init path=&quot;session&quot;/&gt;
      &lt;/persistent-store&gt;
    &lt;/resin:if&gt;
&nbsp;
    &lt;!-- For security, use a different cookie for SSL sessions.(为了安全 你可以为SSL会话定义一个不同的cookie)
       - &lt;ssl-session-cookie&gt;SSL_JSESSIONID&lt;/ssl-session-cookie&gt;
      --&gt;
&nbsp;
    &lt;!-- Enables the cache (available in Resin Professional) (缓存功能启用， Professional功能)--&gt;
    &lt;resin:if test=&quot;${resin.professional}&quot;&gt;
      &lt;cache path=&quot;cache&quot; memory-size=&quot;64M&quot;&gt;
        &lt;!-- Vary header rewriting for IE --&gt;
        &lt;rewrite-vary-as-private/&gt;
      &lt;/cache&gt;
    &lt;/resin:if&gt;
&nbsp;
    &lt;!-- Enables periodic checking of the server status and check for deadlocks.. All servers can add &lt;url&gt;s to be checked. (可以定期检查服务器的状态和死锁检查..所有服务器都可以添加的&lt;url&gt; s的检查  Professional功能 )--&gt;
    &lt;resin:if test=&quot;${resin.professional}&quot;&gt;
      &lt;ping&gt;
        &lt;!-- &lt;url&gt;http://localhost:8080/test-ping.jsp&lt;/url&gt; --&gt;
      &lt;/ping&gt;
    &lt;/resin:if&gt;
&nbsp;
    &lt;!-- Defaults applied to each web-app.(默认web程序)--&gt;
    &lt;web-app-default&gt;
      &lt;prologue&gt;
        &lt;!-- Extension library for common jar files.  The ext is safe
           - even for non-classloader aware jars.  The loaded classes
           - will be loaded separately for each web-app, i.e. the class
           - itself will be distinct. (扩展库的公共jar文件，扩展是安全的即使没有类装载器知道的jars，装载的类将为每个应用分别装载，也就是这些类都是不同的)
           --&gt;
        &lt;class-loader&gt;
          &lt;tree-loader path=&quot;${resin.root}/ext-webapp-lib&quot;/&gt;
        &lt;/class-loader&gt;
&nbsp;
        &lt;!-- Enable EL expressions in Servlet and Filter init-param ()--&gt;
        &lt;allow-servlet-el/&gt;
      &lt;/prologue&gt;
&nbsp;
      &lt;!-- Sets timeout values for cacheable pages, e.g. static pages (设置缓存、静态页面的数值。)--&gt;
      &lt;cache-mapping url-pattern=&quot;/&quot; expires=&quot;5s&quot;/&gt;
      &lt;cache-mapping url-pattern=&quot;*.gif&quot; expires=&quot;60s&quot;/&gt;
      &lt;cache-mapping url-pattern=&quot;*.jpg&quot; expires=&quot;60s&quot;/&gt;
      &lt;cache-mapping url-pattern=&quot;*.png&quot; expires=&quot;60s&quot;/&gt;
&nbsp;
      &lt;!-- for security, disable session URLs by default. (安全的原因，默认禁用了会话的URL) --&gt;
      &lt;session-config&gt;
        &lt;enable-url-rewriting&gt;false&lt;/enable-url-rewriting&gt;
      &lt;/session-config&gt;
&nbsp;
      &lt;!-- For security, set the HttpOnly flag in cookies.(安全原因，在cokkies中设置 HttpOnly标记 防止跨站攻击)
         - &lt;cookie-http-only/&gt;
        --&gt;
&nbsp;
      &lt;!-- Some JSP packages have incorrect .tld files.  It's possible to set validate-taglib-schema to false to work around these packages. (一些JSP包有不正确的。TLD文件。它可以设置validate-taglib-schema为false来变通解决这些包。使其可以正常工作) --&gt;
        &lt;jsp&gt;
          &lt;validate-taglib-schema&gt;true&lt;/validate-taglib-schema&gt;
          &lt;fast-jstl&gt;true&lt;/fast-jstl&gt;
        &lt;/jsp&gt;
    &lt;/web-app-default&gt;
&nbsp;
    &lt;!-- includes the app-default for default web-app behavior (导入用于默认网络应用程序的行为违约) --&gt;
    &lt;resin:import path=&quot;${resin.home}/conf/app-default.xml&quot;/&gt;
&nbsp;
    &lt;!-- Sample database pool configuration The JDBC name is java:comp/env/jdbc/test (简单的数据池配置)
         &lt;database&gt;
           &lt;jndi-name&gt;jdbc/mysql&lt;/jndi-name&gt;
           &lt;driver type=&quot;org.gjt.mm.mysql.Driver&quot;&gt;
             &lt;url&gt;jdbc:mysql://localhost:3306/test&lt;/url&gt;
             &lt;user&gt;&lt;/user&gt;
             &lt;password&gt;&lt;/password&gt;
            &lt;/driver&gt;
            &lt;prepared-statement-cache-size&gt;8&lt;/prepared-statement-cache-size&gt;
            &lt;max-connections&gt;20&lt;/max-connections&gt;
            &lt;max-idle-time&gt;30s&lt;/max-idle-time&gt;
          &lt;/database&gt;
      --&gt;
&nbsp;
    &lt;!-- Default host configuration applied to all virtual hosts.(定义所有虚拟主机的默认配置) --&gt;
    &lt;host-default&gt;
      &lt;!-- With another web server, like Apache, this can be commented out because the web server will log this information.(如果和别的 web服务器整合，这个可以被去掉，因为web服务器也可以记录这些信息)--&gt;
      &lt;access-log path=&quot;logs/access.log&quot; 
            format='%h %l %u %t &quot;%r&quot; %s %b &quot;%{Referer}i&quot; &quot;%{User-Agent}i&quot;'
            rollover-period=&quot;1W&quot;/&gt;
&nbsp;
      &lt;!-- creates the webapps directory for .war expansion  (.war文件的目录)--&gt;
      &lt;web-app-deploy path=&quot;webapps&quot;/&gt;
&nbsp;
      &lt;!-- creates the deploy directory for .ear expansion (.ear文件的目录)--&gt;
      &lt;ear-deploy path=&quot;deploy&quot;&gt;
        &lt;ear-default&gt;
          &lt;ejb-server&gt;
            &lt;config-directory&gt;WEB-INF&lt;/config-directory&gt;
          &lt;/ejb-server&gt;
        &lt;/ear-default&gt;
      &lt;/ear-deploy&gt;
&nbsp;
      &lt;!-- creates the deploy directory for .rar expansion (.rar文件目录)--&gt;
      &lt;resource-deploy path=&quot;deploy&quot;/&gt;
    &lt;/host-default&gt;
&nbsp;
    &lt;!-- configures a deployment directory for virtual hosts (虚拟主机的目录)--&gt;
    &lt;host-deploy path=&quot;hosts&quot;&gt;
      &lt;host-default&gt;
        &lt;resin:import path=&quot;host.xml&quot; optional=&quot;true&quot;/&gt;
      &lt;/host-default&gt;
    &lt;/host-deploy&gt;
&nbsp;
    &lt;!-- configures the default host, matching any host name (默认虚拟主机配置)--&gt;
    &lt;host id=&quot;&quot; root-directory=&quot;.&quot;&gt;
      &lt;!-- configures an explicit root web-app matching the webapp's ROOT (默认的虚拟主机配置) --&gt;
      &lt;web-app id=&quot;/&quot; root-directory=&quot;webapps/ROOT&quot;/&gt;
      &lt;web-app id=&quot;/resin-admin&quot; root-directory=&quot;${resin.home}/php/admin&quot;&gt;
        &lt;!-- Administration application /resin-admin (管理应用程序 /resin-admin) --&gt;
        &lt;prologue&gt;
          &lt;resin:set var=&quot;resin_admin_external&quot; value=&quot;false&quot;/&gt;
          &lt;resin:set var=&quot;resin_admin_insecure&quot; value=&quot;true&quot;/&gt;
        &lt;/prologue&gt;
      &lt;/web-app&gt;
    &lt;/host&gt;
  &lt;/cluster&gt;
&nbsp;
  &lt;!-- Configuration for the web-tier/load-balancer (配置为Web层/负载平衡器)--&gt;
  &lt;resin:if test=&quot;${resin.professional}&quot;&gt;
    &lt;cluster id=&quot;web-tier&quot;&gt;
      &lt;server-default&gt;
        &lt;!-- The http port --&gt;
        &lt;http address=&quot;*&quot; port=&quot;9080&quot;/&gt;
      &lt;/server-default&gt;
      &lt;server id=&quot;web-a&quot; address=&quot;127.0.0.1&quot; port=&quot;6700&quot;/&gt;
      &lt;cache path=&quot;cache&quot; memory-size=&quot;64M&quot;/&gt;
      &lt;host id=&quot;&quot;&gt;
        &lt;web-app id=&quot;/&quot;&gt;
&nbsp;
           &lt;rewrite-dispatch&gt;
             &lt;load-balance regexp=&quot;&quot; cluster=&quot;app-tier&quot;/&gt;
           &lt;/rewrite-dispatch&gt;
&nbsp;
        &lt;/web-app&gt;
      &lt;/host&gt;
    &lt;/cluster&gt;
  &lt;/resin:if&gt;
&lt;/resin&gt;</pre></td></tr></table></div>

<div style="margin-top: 15px; font-style: italic">
<p><strong>原创文章，转载请注明：</strong> 转载自<a href="http://www.apparitor.info/">gjw_apparitor 博客</a></p>
<p><strong>本文链接地址:</strong> <a href="http://www.apparitor.info/2011/04/07/resin-3-1%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6%e8%af%a6%e8%a7%a3-2/">Resin 3.1配置文件详解</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.apparitor.info/2011/04/07/resin-3-1%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6%e8%af%a6%e8%a7%a3-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pure-FTP 配置</title>
		<link>http://www.apparitor.info/2011/04/07/pure-ftp-%e9%85%8d%e7%bd%ae/</link>
		<comments>http://www.apparitor.info/2011/04/07/pure-ftp-%e9%85%8d%e7%bd%ae/#comments</comments>
		<pubDate>Thu, 07 Apr 2011 07:54:52 +0000</pubDate>
		<dc:creator>gjw_apparitor</dc:creator>
				<category><![CDATA[Service]]></category>
		<category><![CDATA[ftp]]></category>

		<guid isPermaLink="false">http://www.apparitor.info/?p=286</guid>
		<description><![CDATA[Pure-FTP 类似linux下useradd/usermod/passwd工具的用户管理方式。 安装: 当前最新版本为1.0.21，可从官方网站下载。 wget http://download.pureftpd.org/pub/pureftpd/releases/pure-ftpd-1.0.21.tar.gz tar zxvf pure-ftpd-1.0.21.tar.gz cd pure-ftpd-1.0.21 ./configure –prefix=/usr/local/pure-ftpd \ --with-everything make make install mkdir /usr/local/pure-ftpd/etc cp configuration-file/pure-ftpd.conf /usr/local/pure-ftpd/etc/ cp configuration-file/pure-config.pl /usr/local/pure-ftpd/bin/ chmod +x /usr/local/pure-ftpd/bin/pure-config.pl 0 1 2 3 4 5 6 7 vi /usr/local/pure-ftpd/bin/pure-config.pl my $PUREFTPD; -x &#38;&#38; ($PUREFTPD=$_, last) for qw( ${exec_prefix}/sbin/pure-ftpd /usr/local/pure-ftpd/sbin/pure-ftpd /usr/local/pureftpd/sbin/pure-ftpd /usr/local/sbin/pure-ftpd /usr/sbin/pure-ftpd 如果安装的路径跟上边的不一样，就要你的pure-ftpd路径了。 目录结构说明 pure-ftpd/]]></description>
			<content:encoded><![CDATA[<p>Pure-FTP 类似linux下useradd/usermod/passwd工具的用户管理方式。<br />
安装:<br />
当前最新版本为1.0.21，可从官方网站下载。</p>
<pre>wget http://download.pureftpd.org/pub/pureftpd/releases/pure-ftpd-1.0.21.tar.gz
tar zxvf pure-ftpd-1.0.21.tar.gz
cd pure-ftpd-1.0.21
./configure –prefix=/usr/local/pure-ftpd \
--with-everything
make
make install
mkdir /usr/local/pure-ftpd/etc
cp configuration-file/pure-ftpd.conf /usr/local/pure-ftpd/etc/
cp configuration-file/pure-config.pl /usr/local/pure-ftpd/bin/
chmod +x /usr/local/pure-ftpd/bin/pure-config.pl</pre>
<p><span id="more-286"></span></p>

<div class="wp_codebox"><table><tr id="p2866"><td class="line_numbers"><pre>0
1
2
3
4
5
6
7
</pre></td><td class="code" id="p286code6"><pre class="text" style="font-family:monospace;">vi /usr/local/pure-ftpd/bin/pure-config.pl
my $PUREFTPD;
-x &amp;&amp; ($PUREFTPD=$_, last) for qw(
${exec_prefix}/sbin/pure-ftpd
/usr/local/pure-ftpd/sbin/pure-ftpd
/usr/local/pureftpd/sbin/pure-ftpd
/usr/local/sbin/pure-ftpd
/usr/sbin/pure-ftpd</pre></td></tr></table></div>

<p>如果安装的路径跟上边的不一样，就要你的pure-ftpd路径了。<br />
目录结构说明<br />
pure-ftpd/<br />
|&#8211; bin ＃程序目录<br />
|&#8211; etc ＃配置文件和数据文件目录<br />
|&#8211; man ＃说明文件目录<br />
| `&#8211; man8<br />
`&#8211; sbin ＃程序目录<br />
设置配置文件</p>
<pre>ChrootEveryone yes 			#限制所有用户在其主目录中
BrokenClientsCompatibility no 		#兼容ie等比较非正规化的ftp客户端
MaxClientsNumber 50 		#服务器总共允许同时连接的最大用户数
Daemonize yes 	#做为守护(doemon)进程运行(Fork in background)
MaxClientsPerIP 8 	#同一IP允许同时连接的用户数
VerboseLog no 	#如果你要记录所有的客户命令，设置这个指令为 "yes"
DisplayDotFiles yes	 #即使客户端没有发送 '-a' 选项也列出隐藏文件
AnonymousOnly no	 #不允许认证用户 - 仅作为一个公共的匿名FTP。
NoAnonymous yes 	#不允许匿名连接，仅允许认证用户使用。
SyslogFacility ftp 	#缺省的功能( facility )是 "ftp"。 "none" 将禁止日志。
DontResolve yes		#在日志文件中不解析主机名。
MaxIdleTime 15		#客户端允许的最大的空闲时间（分钟，缺省15分钟）
PureDB /usr/local/pureftp-1.0.22/etc/pureftpd.pdb 	#PureDB 用户数据库
LimitRecursion 2000 8 	#'ls' 命令的递归限制。第一个参数给出文件显示的最大数目。第二个参数给出最大的子目录深度。
AnonymousCanCreateDirs no 	#允许匿名用户创建新目录？
MaxLoad 4 			#如果系统被 loaded 超过下面的值，匿名用户会被禁止下载。
AntiWarez yes 		#不接受所有者为 "ftp" 的文件的下载。
Bind 10.10.10.10,21 	#服务监听的IP 地址和端口。
Umask 133:022		#新建目录及文件的属性掩码值。<文件掩码>;:<目录掩码>; .
MinUID 99 			#认证用户允许登陆的最小组ID（UID） 。
AllowUserFXP yes	#仅允许认证用户进行 FXP 传输。
AllowAnonymousFXP no		#对匿名用户和非匿名用户允许进行匿名 FXP 传输。
ProhibitDotFilesWrite no 	#用户不能删除和写点文件（文件名以 '.' 开头的文件）
ProhibitDotFilesRead no 	#禁止读点文件（文件名以 '.' 开头的文件） (.history, .ssh...)
AutoRename no 				#永不覆盖文件。当上传的文件，其文件名已经存在时，自动重命名，如： file.1, file.2, file.3, ...
AnonymousCantUpload no 	#不接受匿名用户上传新文件( no = 允许上传)
AltLog clf 						#使用类似于Apache的格式创建一个额外的日志文件
MaxDiskUsage 99 			#来保护日志文件。当所在磁盘分区使用超过百分之 X 时，将不在接受新的上传。
CustomerProof yes
UnixAuthentication no 		#不起用 简单的 Unix系统 认证方式(/etc/passwd)。</pre>
<p>更多的配置信息请参考：http://bbs.chinaunix.net/viewthread.php?tid=145846</p>
<p>4、建立系统用户和虚拟用户<br />
为了安全可以让所有虚拟用户共享同一个系统用户。</p>
<pre>/usr/sbin/groupadd ftpgroup
/usr/sbin/useradd -g ftpgroup -s /dev/null ftp
/usr/local/pure-ftpd/bin/pure-pw useradd test01 -u ftp -d /home/ftp/test01 -m</pre>
<p>解释：-u将虚拟用户 test01 同系统用户 ftp 关联在一起。-d参数使 test01 只能访问其 home 目录。而如果想让他访问整个文件系统，可以用 -D 选项。<br />
其他选项：</p>
<pre>	-t 下载带宽限制
	-T 上传带宽限制
	-n 最大文件数目
	-N 磁盘配额(单位M)
	-q 上传速度限制
	-Q 下载速度限制
	-r 允许某些ip/网段的客户端访问
	-R 拒绝某些ip/网段的客户端访问
	-i 允许本地某些ip/网段访问(allow local host)
	-I 拒绝本地某些ip/网段访问(deny local host)
	-y 同时最大连接数目
	-z 允许连接服务器的时间段，格式hhmm-hhmm，如 -z 0412-1618代表用户只能在凌 晨4点12分至下午4点18分连接服务器
	-f passwd_file
	-F puredb_file
	-m 不必重启Pure-FTPd以及重新生成puredb_file文件
	如果进行帐户操作时，没有带-m 参数，那就应该手动更新一下pdb数据：
	/usr/local/stow/pure-ftpd-1.0.21/bin/pure-pw mkdb pureftpd.pdb</pre>
<p>pure-pw useradd 添加用户<br />
pure-pw userdel 删除用户<br />
pure-pw usermod 修改用户<br />
pure-pw show 查看用户详细信息<br />
pure-pw list 查看所有用户设置<br />
pure-pw mkdb 生成数据文件</p>
<p>5、启动PURE－FTPd</p>
<pre>/usr/local/pure-ftpd/bin/pure-config.pl /usr/local/pure-ftpd/etc/pure-ftpd.conf</pre>
<div style="margin-top: 15px; font-style: italic">
<p><strong>原创文章，转载请注明：</strong> 转载自<a href="http://www.apparitor.info/">gjw_apparitor 博客</a></p>
<p><strong>本文链接地址:</strong> <a href="http://www.apparitor.info/2011/04/07/pure-ftp-%e9%85%8d%e7%bd%ae/">Pure-FTP 配置</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.apparitor.info/2011/04/07/pure-ftp-%e9%85%8d%e7%bd%ae/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

