<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feed.feedsky.com/styles/feedsky8.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link href="http://feed.guoyong.org" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feed.feedsky.com/wolfg" type="application/rss+xml"></fs:self_link><lastBuildDate>Tue, 24 Aug 2010 05:56:45 GMT</lastBuildDate><title>wolfg's Weblog</title><description>wolfg's journey with open source, linux, programming, sysadm ...</description><link>http://guoyong.org</link><sy:updatePeriod>hourly</sy:updatePeriod><sy:updateFrequency>1</sy:updateFrequency><creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.5/cn/</creativeCommons:license><language>en</language><pubDate>Tue, 24 Aug 2010 06:05:05 GMT</pubDate><item><title>Using Postgresql</title><link>http://item.feedsky.com/~feedsky/wolfg/~7037877/406057728/5145807/1/item.html</link><content:encoded>&lt;p&gt;1. create tablespace&lt;br /&gt;
$ mkdir -p /home/postgresql/data&lt;br /&gt;
$ sudo chown -R postres:postres /home/postgresql/data&lt;br /&gt;
$ sudo chmod -R og-rx /home/postgresql/data&lt;br /&gt;
$ sudo su &amp;#8211; postgres&lt;br /&gt;
$ psql&lt;br /&gt;
postgres=# create tablespace newspace location &amp;#8216;/home/postgresql/data&amp;#8217;;&lt;/p&gt;
&lt;p&gt;2. move a database to this new tablespace&lt;br /&gt;
use a php script from &lt;a href=&quot;http://blog.lodeblomme.be/2008/03/15/move-a-postgresql-database-to-a-different-tablespace/&quot;&gt;here&lt;/a&gt; to generate sql&lt;br /&gt;
$ sudo yum install php-pgsql&lt;br /&gt;
$ ./generate-mv-db.php&lt;br /&gt;
$ sudo su &amp;#8211; postgres&lt;br /&gt;
$ psql -d mydb -f migrate_localhost_mydb_newspace.sql&lt;/p&gt;
&lt;p&gt;3. install postgis&lt;br /&gt;
a. install proj4.7&lt;br /&gt;
$ sudo yum install proj&lt;br /&gt;
b. install geos 3.2.2&lt;br /&gt;
$ tar xvjf geos-3.2.2.tar.bz2&lt;br /&gt;
$ cd geos-3.2.2&lt;br /&gt;
$ ./configure &amp;#8211;prefix=/usr&lt;br /&gt;
$ make &amp;#038;&amp;#038; sudo make install&lt;br /&gt;
$ sudo ldconfig &lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt; must do this, otherwise postgis will fail to locate libgeos_c.so.1
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;c. install postgis-1.5.1.tar.gz&lt;br /&gt;
$ tar xvzf postgis-1.5.1.tar.gz&lt;br /&gt;
$ cd postgis-1.5.1&lt;br /&gt;
$ ./configure&lt;br /&gt;
$ make &amp;#038;&amp;#038; sudo make install&lt;br /&gt;
d. create a spatially-enabled database&lt;br /&gt;
$ sudo su &amp;#8211; postgres&lt;br /&gt;
$ createdb postgis_template -U postgres;&lt;br /&gt;
$ cd /usr/share/pgsql/contrib/postgis-1.5&lt;br /&gt;
$ createlang plpgsql postgis_template&lt;br /&gt;
$ psql -d postgis_template -f postgis.sql&lt;br /&gt;
$ psql -d postgis_template -f spatial_ref_sys.sql&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/406057728/wolfg/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/wolfg/~7037877/406057728/5145807/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/wolfg/406057728/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/wolfg/406057728/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://guoyong.org/2010/08/24/595/feed</wfw:commentRss><slash:comments>0</slash:comments><description>1. create tablespace
$ mkdir -p /home/postgresql/data
$ sudo chown -R postres:postres /home/postgresql/data
$ sudo chmod -R og-rx /home/postgresql/data
$ sudo su &amp;#8211; postgres
$ psql
postgres=# create tablespace newspace location &amp;#8216;/home/postgres...&lt;img src=&quot;http://www1.feedsky.com/t1/406057728/wolfg/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/wolfg/~7037877/406057728/5145807/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/wolfg/406057728/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/wolfg/406057728/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>postgis</category><category>centos</category><category>Dev</category><category>postgresql</category><category>SysAdmin</category><pubDate>Tue, 24 Aug 2010 13:56:45 +0800</pubDate><author>wolfg</author><comments>http://guoyong.org/2010/08/24/595#comments</comments><guid isPermaLink="false">http://guoyong.org/?p=595</guid><dc:creator>wolfg</dc:creator><fs:srclink>http://guoyong.org/2010/08/24/595</fs:srclink><fs:srcfeed>http://guoyong.org/feed</fs:srcfeed><fs:itemid>feedsky/wolfg/~7037877/406057728/5145807</fs:itemid></item><item><title>给虚拟机的虚拟硬盘增加容量(vmdk file)</title><link>http://item.feedsky.com/~feedsky/wolfg/~7037877/406057729/5145807/1/item.html</link><content:encoded>&lt;p&gt;我使用虚拟机主要是为了使用Windows XP系统来访问网银、进行在线支付。当初安装时是用VMWare Player的，后来换成了VirtualBox 3。Windows XP越来越臃肿，虚拟机硬盘空间不够了。在网上搜索后找到了增加虚拟硬盘容量的方法：使用&lt;a href=&quot;http://wiki.qemu.org/Main_Page&quot;&gt;QEMN&lt;/a&gt;和&lt;a href=&quot;http://gparted.sourceforge.net/&quot;&gt;GParted&lt;/a&gt;，不用安装“庞大”的VMWare软件。特别说明一下最初创建虚拟硬盘时也是使用的QEMU工具。&lt;/p&gt;
&lt;p&gt;具体步骤如下：&lt;br /&gt;
1. VMDK格式转成RAW格式&lt;/p&gt;
&lt;div class=&quot;hl-surround&quot;&gt;&lt;div class=&quot;hl-main&quot;&gt;$ qemu-img convert -f vmdk winxp.vmdk -O raw winxp.raw&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;2. 新建一个RAW格式的文件，后面会用到&lt;/p&gt;
&lt;div class=&quot;hl-surround&quot;&gt;&lt;div class=&quot;hl-main&quot;&gt;$ qemu-img create -f raw temp.img 512M&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;3. 用cat命令把temp.img多次追加到winxp.raw文件后，达到扩容的目的。&lt;/p&gt;
&lt;div class=&quot;hl-surround&quot;&gt;&lt;div class=&quot;hl-main&quot;&gt;$ cat winxp.raw temp.img temp.img temp.img temp.img temp.img temp.img temp.img temp.img &amp;gt; winxp.img&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;4. 再转成原来的VMDK格式&lt;/p&gt;
&lt;div class=&quot;hl-surround&quot;&gt;&lt;div class=&quot;hl-main&quot;&gt;$ qemu-img convert -f raw winxp.img -O vmdk winxp.vmdk&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;5. 用下载Gparted Live CD 的iso文件作为光盘启动虚拟机，可以看到硬盘物理空间已经变成了8G。修改硬盘上面的分区大小就行了，也可以创建新的分区。&lt;br /&gt;
&lt;a href=&quot;http://guoyong.org/blog/wp-content/uploads/gparted.png&quot;&gt;&lt;img src=&quot;http://guoyong.org/blog/wp-content/uploads/gparted-300x197.png&quot; alt=&quot;&quot; title=&quot;进行中&quot; width=&quot;300&quot; height=&quot;197&quot; class=&quot;alignnone size-medium wp-image-586&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;http://guoyong.org/blog/wp-content/uploads/gparted2.png&quot;&gt;&lt;img src=&quot;http://guoyong.org/blog/wp-content/uploads/gparted2-300x197.png&quot; alt=&quot;&quot; title=&quot;修改成功&quot; width=&quot;300&quot; height=&quot;197&quot; class=&quot;alignnone size-medium wp-image-587&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;参考:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.cyberciti.biz/tips/howto-resize-vmware-virtual-harddisk-size.html#comments&quot; title=&quot;http://www.cyberciti.biz/tips/howto-resize-vmware-virtual-harddisk-size.html#comments&quot; target=&quot;_blank&quot;&gt;www.cyberciti.biz/tips/howto-resize-vmware-virtual&amp;#8230;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://qemu-forum.ipi.fi/viewtopic.php?t=846&amp;#038;highlight=&quot; title=&quot;http://qemu-forum.ipi.fi/viewtopic.php?t=846&amp;#038;highlight=&quot; target=&quot;_blank&quot;&gt;qemu-forum.ipi.fi/viewtopic.php?t=846&amp;#038;highlight=&lt;/a&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/406057729/wolfg/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/wolfg/~7037877/406057729/5145807/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/wolfg/406057729/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/wolfg/406057729/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://guoyong.org/2010/03/04/576/feed</wfw:commentRss><slash:comments>0</slash:comments><description>我使用虚拟机主要是为了使用Windows XP系统来访问网银、进行在线支付。当初安装时是用VMWare Player的，后来换成了VirtualBox 3。Windows XP越来越臃肿，虚拟机硬盘空间不够了。在网上搜索后找到了...&lt;img src=&quot;http://www1.feedsky.com/t1/406057729/wolfg/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/wolfg/~7037877/406057729/5145807/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/wolfg/406057729/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/wolfg/406057729/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>vmdk</category><category>ubuntu</category><category>Using Desktop</category><category>gparted</category><category>qemu</category><category>vmware-player</category><category>virtualbox</category><category>vmware</category><pubDate>Thu, 04 Mar 2010 17:56:03 +0800</pubDate><author>wolfg</author><comments>http://guoyong.org/2010/03/04/576#comments</comments><guid isPermaLink="false">http://guoyong.org/?p=576</guid><dc:creator>wolfg</dc:creator><fs:srclink>http://guoyong.org/2010/03/04/576</fs:srclink><fs:srcfeed>http://guoyong.org/feed</fs:srcfeed><fs:itemid>feedsky/wolfg/~7037877/406057729/5145807</fs:itemid></item><item><title>再谈使用Commons HttpClient产生大量CLOSE_WAIT</title><link>http://item.feedsky.com/~feedsky/wolfg/~7037877/406057730/5145807/1/item.html</link><content:encoded>&lt;p&gt;默认情况下(即用默认构造方法建立HttpClient对象)，httpMethod.releaseConnection()方法并不会关闭连接的Socket，目的是可以重用这个连接。网上有不少讨论：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://www.mail-archive.com/commons-httpclient-dev@jakarta.apache.org/msg04338.html&quot;&gt;Re: CLOSE_WAIT, logging&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.w3.org/Protocols/rfc2616/rfc2616-sec8.html&quot;&gt;Re: [httpclient] CLOSE_WAIT sticking around&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.mail-archive.com/httpclient-user@jakarta.apache.org/msg04467.html&quot;&gt;Re: tcp connections left with CLOSE_WAIT&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://swordinhand.javaeye.com/blog/149408&quot;&gt;apache httpclient与close_wait&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;这些讨论里提出了关闭Socket的方法，即在请求头里加上&amp;#8221;Connection: close&amp;#8221;，具体可见&lt;a href=&quot;http://www.w3.org/Protocols/rfc2616/rfc2616-sec8.html&quot;&gt;HTTP协议规范里的说明&lt;/a&gt;。&lt;/p&gt;
&lt;p&gt;其实HttpClient 3.x 里还可以通过下面的方式建立HttpClient对象，来保证关闭Socket连接：&lt;/p&gt;
&lt;div class=&quot;hl-surround&quot;&gt;&lt;ol class=&quot;hl-main ln-show&quot; title=&quot;Double click to hide line number.&quot; ondblclick = &quot;linenumber(this)&quot;&gt;&lt;li class=&quot;hl-firstline&quot;&gt;&lt;span style=&quot;color: Blue;&quot;&gt;HttpClient&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: Blue;&quot;&gt;httpClient&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: Blue;&quot;&gt;HttpClient&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: Blue;&quot;&gt;SimpleHttpConnectionManager&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: Green;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: Olive;&quot;&gt;))&lt;/span&gt;&lt;span style=&quot;color: Gray;&quot;&gt;;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;
&lt;p&gt;具体可见HttpClient源码和API文档。&lt;/p&gt;
&lt;p&gt;当然，使用HttpClient的多线程连接管理器时就不用这么做了。&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/406057730/wolfg/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/wolfg/~7037877/406057730/5145807/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/wolfg/406057730/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/wolfg/406057730/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://guoyong.org/2010/02/02/572/feed</wfw:commentRss><slash:comments>0</slash:comments><description>默认情况下(即用默认构造方法建立HttpClient对象)，httpMethod.releaseConnection()方法并不会关闭连接的Socket，目的是可以重用这个连接。网上有不少讨论：

Re: CLOSE_WAIT, logging

Re: [httpclient] CLOSE_WAIT stic...&lt;img src=&quot;http://www1.feedsky.com/t1/406057730/wolfg/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/wolfg/~7037877/406057730/5145807/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/wolfg/406057730/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/wolfg/406057730/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>CLOSE_WAIT</category><category>Java</category><category>Dev</category><category>tcp</category><category>HttpClient</category><pubDate>Tue, 02 Feb 2010 15:16:12 +0800</pubDate><author>wolfg</author><comments>http://guoyong.org/2010/02/02/572#comments</comments><guid isPermaLink="false">http://guoyong.org/?p=572</guid><dc:creator>wolfg</dc:creator><fs:srclink>http://guoyong.org/2010/02/02/572</fs:srclink><fs:srcfeed>http://guoyong.org/feed</fs:srcfeed><fs:itemid>feedsky/wolfg/~7037877/406057730/5145807</fs:itemid></item><item><title>SSH:不用密码登录</title><link>http://item.feedsky.com/~feedsky/wolfg/~7037877/406057731/5145807/1/item.html</link><content:encoded>&lt;p&gt;用SSH登录远程主机，每次都输入密码挺麻烦的，其实可以用密钥文件来登录：&lt;br /&gt;
1. 用ssh-keygen命令生成private/public密钥对，提示问题都用默认回答即可。&lt;/p&gt;
&lt;div class=&quot;hl-surround&quot;&gt;&lt;div class=&quot;hl-main&quot;&gt;$ ssh-keygen&lt;br /&gt;Generating public/private rsa key pair.&lt;br /&gt;Enter file in which to save the key (/home/guoyong/.ssh/id_rsa): &lt;br /&gt;Enter passphrase (empty for no passphrase): &lt;br /&gt;Enter same passphrase again: &lt;br /&gt;Your identification has been saved in /home/guoyong/.ssh/id_rsa.&lt;br /&gt;Your public key has been saved in /home/guoyong/.ssh/id_rsa.pub.&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;2. 用ssh-copy-id命令把公钥复制到远程主机上，user就是你登录用的用户名&lt;/p&gt;
&lt;div class=&quot;hl-surround&quot;&gt;&lt;div class=&quot;hl-main&quot;&gt;$ ssh-cody-id user@remotehost&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;3. 验证一下吧&lt;/p&gt;
&lt;div class=&quot;hl-surround&quot;&gt;&lt;div class=&quot;hl-main&quot;&gt;$ ssh user@remotehost echo &amp;quot;it works&amp;quot;&lt;/div&gt;&lt;/div&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/406057731/wolfg/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/wolfg/~7037877/406057731/5145807/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/wolfg/406057731/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/wolfg/406057731/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://guoyong.org/2010/01/30/569/feed</wfw:commentRss><slash:comments>0</slash:comments><description>用SSH登录远程主机，每次都输入密码挺麻烦的，其实可以用密钥文件来登录：
1. 用ssh-keygen命令生成private/public密钥对，提示问题都用默认回答即可。
$ ssh-keygenGenerating public/private rsa key pair.Enter ...&lt;img src=&quot;http://www1.feedsky.com/t1/406057731/wolfg/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/wolfg/~7037877/406057731/5145807/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/wolfg/406057731/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/wolfg/406057731/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>ubuntu</category><category>ssh</category><category>SysAdmin</category><pubDate>Sat, 30 Jan 2010 16:31:22 +0800</pubDate><author>wolfg</author><comments>http://guoyong.org/2010/01/30/569#comments</comments><guid isPermaLink="false">http://guoyong.org/?p=569</guid><dc:creator>wolfg</dc:creator><fs:srclink>http://guoyong.org/2010/01/30/569</fs:srclink><fs:srcfeed>http://guoyong.org/feed</fs:srcfeed><fs:itemid>feedsky/wolfg/~7037877/406057731/5145807</fs:itemid></item><item><title>nrpe使用一例</title><link>http://item.feedsky.com/~feedsky/wolfg/~7037877/406057732/5145807/1/item.html</link><content:encoded>&lt;p&gt;NRPE的作用是在远程主机上运行Nagios插件，以便监控远程主机。&lt;/p&gt;
&lt;p&gt;Ubuntu Server下安装NRPE很方便：&lt;/p&gt;
&lt;div class=&quot;hl-surround&quot;&gt;&lt;div class=&quot;hl-main&quot;&gt;$ sudo apt-get install nagios-nrpe-server nagios-plugins&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;默认的几个检查命令(check_users, check_load等)都已经在/etc/naigos/nrpe.cfg和/etc/nagios/nrpe_local.cfg配置好了。在Nagios里配置监控服务使用类似如下的监控命令就可以了：&lt;/p&gt;
&lt;div class=&quot;hl-surround&quot;&gt;&lt;div class=&quot;hl-main&quot;&gt;check_command&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;check_nrpe!check_load&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;如果需要自定义监控命令，只需在/etc/nagios/nrpe_local.cfg里设置，重启NRPE服务，再在Nagios里配置监控服务即可。比如，要添加一个监控TCP各种状态的命令，步骤如下：&lt;/p&gt;
&lt;div class=&quot;hl-surround&quot;&gt;&lt;div class=&quot;hl-main&quot;&gt;@remotehost&lt;br /&gt;$ cd /usr/lib/nagios/plugins&lt;br /&gt;$ sudo wget http://www.tuschy.com/nagios/plugins/check_tcp_count&lt;br /&gt;$ sudo chmod +x check_tcp_count&lt;br /&gt;$ cd /etc/nagios&lt;br /&gt;$ sudo vi nrpe_local.cfg&lt;br /&gt;command[check_tcp_count]=/usr/lib/nagios/plugins/check_tcp_count&lt;br /&gt;$ sudo service nagios-nrpe-server restart&lt;br /&gt;&lt;br /&gt;@nagioshost&lt;br /&gt;$ sudo vi remotehost.cfg&lt;br /&gt;define service{&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;use&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; generic-service&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;host_name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; remotehostname&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;service_description&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Tcp count&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;check_command&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; check_nrpe!check_tcp_count&lt;br /&gt;}&lt;/div&gt;&lt;/div&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/406057732/wolfg/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/wolfg/~7037877/406057732/5145807/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/wolfg/406057732/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/wolfg/406057732/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://guoyong.org/2010/01/28/548/feed</wfw:commentRss><slash:comments>0</slash:comments><description>NRPE的作用是在远程主机上运行Nagios插件，以便监控远程主机。
Ubuntu Server下安装NRPE很方便：
$ sudo apt-get install nagios-nrpe-server nagios-plugins
默认的几个检查命令(check_users, check_load等)都已经在/etc/nai...&lt;img src=&quot;http://www1.feedsky.com/t1/406057732/wolfg/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/wolfg/~7037877/406057732/5145807/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/wolfg/406057732/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/wolfg/406057732/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>ubuntu</category><category>运维</category><category>nagios</category><category>nrpe</category><category>监控</category><category>SysAdmin</category><pubDate>Thu, 28 Jan 2010 15:22:25 +0800</pubDate><author>wolfg</author><comments>http://guoyong.org/2010/01/28/548#comments</comments><guid isPermaLink="false">http://guoyong.org/?p=548</guid><dc:creator>wolfg</dc:creator><fs:srclink>http://guoyong.org/2010/01/28/548</fs:srclink><fs:srcfeed>http://guoyong.org/feed</fs:srcfeed><fs:itemid>feedsky/wolfg/~7037877/406057732/5145807</fs:itemid></item><item><title>使用Cacti监控JVM</title><link>http://item.feedsky.com/~feedsky/wolfg/~7037877/406057733/5145807/1/item.html</link><content:encoded>&lt;p&gt;Cacti官方论坛里有几个监控JVM的模板：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://forums.cacti.net/about19761.html&quot;&gt;http://forums.cacti.net/about19761.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://forums.cacti.net/post-112268.html&quot;&gt;http://forums.cacti.net/post-112268.html&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;导入到Cacti后，需要启用JVM的SNMP Agent，方法如下：&lt;br /&gt;
1. 启动JVM的参数里加入-Dcom.sun.management.snmp.port=9998 这个是指定SNMP Agent的监听端口。&lt;br /&gt;
2. 设置访问权限&lt;/p&gt;
&lt;div class=&quot;hl-surround&quot;&gt;&lt;div class=&quot;hl-main&quot;&gt;$ sudo cp $JRE_HOME/lib/management/snmp.acl.template $JRE_HOME/lib/management/snmp.acl&lt;br /&gt;$ sudo vi $JRE_HOME/lib/management/snmp.acl&lt;br /&gt;&lt;br /&gt;acl = {&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;communities = public, private&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;access = read-only&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;managers = localhost&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;trap = {&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;trap-community = public&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;hosts = localhost&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;}&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;3. 设置配置文件的权限，必须只能为启用JVM的用户只读，否则不能工作。(management.properties不用修改，使用默认配置即可)&lt;/p&gt;
&lt;div class=&quot;hl-surround&quot;&gt;&lt;div class=&quot;hl-main&quot;&gt;$ sudo chmod 600 management.properties snmp.acl&lt;br /&gt;$ sudo chown jetty management.properties snmp.acl&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;4. 重启JVM，用netstat命令检查9998端口是否已被监听或用snmpwalk命令检查。&lt;/p&gt;
&lt;div class=&quot;hl-surround&quot;&gt;&lt;div class=&quot;hl-main&quot;&gt;$ sudo netstat -tlunp |grep 9998&lt;br /&gt;$ snmpwalk -v 2c -c public localhost:9998 .1.3.6.1.4.1.42&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;5. 为了让远程的Cacti主机可以访问，可使用snmpd的proxy功能将请求转发到localhost的JVM SNMP Agent上。修改snmpd的配置文件，添加&lt;br /&gt;
proxy -v 2c -c public localhost:9998 .1.3.6.1.4.1.42&lt;br /&gt;
然后重启snmpd服务。在Cacti主机上以snmpwalk命令检查，应该能得到与上一步中snmpwalk命令一样的输出。snmpwalk -v 2c -c public remotehost .1.3.6.1.4.1.42&lt;br /&gt;
6. 至此，可以在Cacti里为JVM主机添加监控图表了，注意Device的SNMP Options配置里SNMP Version要选择Version 2。&lt;/p&gt;
&lt;p&gt;参考：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://java.sun.com/javase/6/docs/technotes/guides/management/snmp.html&quot;&gt;http://java.sun.com/javase/6/docs/technotes/guides/management/snmp.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.fifi.org/cgi-bin/man2html/usr/share/man/man5/snmpd.conf.5snmp.gz&quot;&gt;http://www.fifi.org/cgi-bin/man2html/usr/share/man/man5/snmpd.conf.5snmp.gz&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/406057733/wolfg/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/wolfg/~7037877/406057733/5145807/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/wolfg/406057733/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/wolfg/406057733/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://guoyong.org/2010/01/27/512/feed</wfw:commentRss><slash:comments>0</slash:comments><description>Cacti官方论坛里有几个监控JVM的模板：

http://forums.cacti.net/about19761.html

http://forums.cacti.net/post-112268.html

导入到Cacti后，需要启用JVM的SNMP Agent，方法如下：
1. 启动JVM的参数里加入-Dcom.sun.management.s...&lt;img src=&quot;http://www1.feedsky.com/t1/406057733/wolfg/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/wolfg/~7037877/406057733/5145807/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/wolfg/406057733/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/wolfg/406057733/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>运维</category><category>jvm</category><category>监控</category><category>cacti</category><category>SysAdmin</category><category>snmp</category><pubDate>Wed, 27 Jan 2010 16:55:59 +0800</pubDate><author>wolfg</author><comments>http://guoyong.org/2010/01/27/512#comments</comments><guid isPermaLink="false">http://guoyong.org/?p=512</guid><dc:creator>wolfg</dc:creator><fs:srclink>http://guoyong.org/2010/01/27/512</fs:srclink><fs:srcfeed>http://guoyong.org/feed</fs:srcfeed><fs:itemid>feedsky/wolfg/~7037877/406057733/5145807</fs:itemid></item><item><title>登录窗口有多个Xfce会话供选择，怎么回事？</title><link>http://item.feedsky.com/~feedsky/wolfg/~7037877/406057734/5145807/1/item.html</link><content:encoded>&lt;p&gt;登录窗口里选择会话的地方，一直有两个Xfce Session，登录后似乎略有不同。其实是在/usr/share/xsessions目录有一个符号链接default.desktop指向了xfce.desktop，删掉它后就可以了，也不影响什么。&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/406057734/wolfg/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/wolfg/~7037877/406057734/5145807/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/wolfg/406057734/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/wolfg/406057734/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://guoyong.org/2010/01/26/558/feed</wfw:commentRss><slash:comments>0</slash:comments><description>登录窗口里选择会话的地方，一直有两个Xfce Session，登录后似乎略有不同。其实是在/usr/share/xsessions目录有一个符号链接default.desktop指向了xfce.desktop，删掉它后就可以了，也不影响什么。...&lt;img src=&quot;http://www1.feedsky.com/t1/406057734/wolfg/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/wolfg/~7037877/406057734/5145807/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/wolfg/406057734/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/wolfg/406057734/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>ubuntu</category><category>Using Desktop</category><category>xfce</category><category>xsessions</category><category>gdm</category><pubDate>Tue, 26 Jan 2010 20:44:40 +0800</pubDate><author>wolfg</author><comments>http://guoyong.org/2010/01/26/558#comments</comments><guid isPermaLink="false">http://guoyong.org/?p=558</guid><dc:creator>wolfg</dc:creator><fs:srclink>http://guoyong.org/2010/01/26/558</fs:srclink><fs:srcfeed>http://guoyong.org/feed</fs:srcfeed><fs:itemid>feedsky/wolfg/~7037877/406057734/5145807</fs:itemid></item><item><title>找回消失的Notification Area(Xubuntu)</title><link>http://item.feedsky.com/~feedsky/wolfg/~7037877/406057735/5145807/1/item.html</link><content:encoded>&lt;p&gt;美化桌面的时候会遇到通知区域(Notification Area)Applet不见了的情况，试图再加一个到面板上也会报类似“通知区域已经存在”的错误。&lt;/p&gt;
&lt;p&gt;解决办法是检查~/.config/xfce4/panel目录下有没有名字以systray开头的文件，删掉这些文件。&lt;br /&gt;
rm ~/.config/xfce4/panel/systray*&lt;br /&gt;
再编辑~/.config/xfce4/panel/panels.xml这个文件，如果有一行包含systray的，也删掉。&lt;/p&gt;
&lt;p&gt;再次登入后，重新添加通知区域到面板就可以了。&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/406057735/wolfg/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/wolfg/~7037877/406057735/5145807/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/wolfg/406057735/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/wolfg/406057735/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://guoyong.org/2010/01/26/556/feed</wfw:commentRss><slash:comments>0</slash:comments><description>美化桌面的时候会遇到通知区域(Notification Area)Applet不见了的情况，试图再加一个到面板上也会报类似“通知区域已经存在”的错误。
解决办法是检查~/.config/xfce4/panel目录下有没有名字以systray...&lt;img src=&quot;http://www1.feedsky.com/t1/406057735/wolfg/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/wolfg/~7037877/406057735/5145807/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/wolfg/406057735/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/wolfg/406057735/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>xubuntu</category><category>ubuntu</category><category>Using Desktop</category><category>notification area</category><category>xfce-panel</category><category>xfce</category><pubDate>Tue, 26 Jan 2010 19:48:43 +0800</pubDate><author>wolfg</author><comments>http://guoyong.org/2010/01/26/556#comments</comments><guid isPermaLink="false">http://guoyong.org/?p=556</guid><dc:creator>wolfg</dc:creator><fs:srclink>http://guoyong.org/2010/01/26/556</fs:srclink><fs:srcfeed>http://guoyong.org/feed</fs:srcfeed><fs:itemid>feedsky/wolfg/~7037877/406057735/5145807</fs:itemid></item><item><title>再次遭遇大量CLOSE_WAIT</title><link>http://item.feedsky.com/~feedsky/wolfg/~7037877/406057736/5145807/1/item.html</link><content:encoded>&lt;p&gt;今天下午线上的Jetty服务又停止响应了。不过与上次不同的是，日志里没有Too many open files的问题（看来ulimit设置管用了），看不出任何问题。于是用netstat检查网络连接，发现了大量CLOSE_WAIT状态的连接，而且都是连接到同一个IP地址。联想到程序里有调用外部网站服务的部分，检查这个IP，正是其中的一个服务。检查代码，发现开发人员使用Commons HttpClient时出了问题，居然忘记关闭连接了(method.releaseConnection();)！！后果就是对方关闭了连接，连接不断地变成CLOSE_WAIT状态，直到耗尽所有的网络资源，没法再建立连接了。&lt;/p&gt;
&lt;p&gt;从这个教训看出，项目的研发管理真是没有到位啊！快速反复的需求、几乎可以忽略的设计、缺少代码走查、没有单元测试，怎能保证上线前发现这样的问题！&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/406057736/wolfg/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/wolfg/~7037877/406057736/5145807/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/wolfg/406057736/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/wolfg/406057736/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://guoyong.org/2010/01/22/543/feed</wfw:commentRss><slash:comments>0</slash:comments><description>今天下午线上的Jetty服务又停止响应了。不过与上次不同的是，日志里没有Too many open files的问题（看来ulimit设置管用了），看不出任何问题。于是用netstat检查网络连接，发现了大量CLOSE_WAIT状态...&lt;img src=&quot;http://www1.feedsky.com/t1/406057736/wolfg/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/wolfg/~7037877/406057736/5145807/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/wolfg/406057736/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/wolfg/406057736/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>Linux</category><category>CLOSE_WAIT</category><category>jetty</category><category>Dev</category><category>tcp</category><category>SysAdmin</category><category>HttpClient</category><pubDate>Fri, 22 Jan 2010 20:51:05 +0800</pubDate><author>wolfg</author><comments>http://guoyong.org/2010/01/22/543#comments</comments><guid isPermaLink="false">http://guoyong.org/?p=543</guid><dc:creator>wolfg</dc:creator><fs:srclink>http://guoyong.org/2010/01/22/543</fs:srclink><fs:srcfeed>http://guoyong.org/feed</fs:srcfeed><fs:itemid>feedsky/wolfg/~7037877/406057736/5145807</fs:itemid></item><item><title>Services not starting on boot</title><link>http://item.feedsky.com/~feedsky/wolfg/~7037877/406057737/5145807/1/item.html</link><content:encoded>&lt;p&gt;前一段时间笔记本升级到Ubuntu 9.10后遇到了系统服务没有启动的问题，后来得知是upstart的一个&lt;a href=&quot;https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/497299&quot;&gt;bug&lt;/a&gt;。具体情况看看我在&lt;a href=&quot;http://serverfault.com&quot;&gt;ServerFault&lt;/a&gt;回答的&lt;a href=&quot;http://serverfault.com/questions/100240/services-not-starting-on-boot-but-will-start-manually-on-ubuntu-9-10/103532#103532&quot;&gt;同样问题&lt;/a&gt;吧。&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/406057737/wolfg/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/wolfg/~7037877/406057737/5145807/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/wolfg/406057737/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/wolfg/406057737/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://guoyong.org/2010/01/21/524/feed</wfw:commentRss><slash:comments>0</slash:comments><description>前一段时间笔记本升级到Ubuntu 9.10后遇到了系统服务没有启动的问题，后来得知是upstart的一个bug。具体情况看看我在ServerFault回答的同样问题吧。...&lt;img src=&quot;http://www1.feedsky.com/t1/406057737/wolfg/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/wolfg/~7037877/406057737/5145807/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/wolfg/406057737/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/wolfg/406057737/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>ubuntu</category><category>Using Desktop</category><category>serverfault</category><category>upstart</category><pubDate>Thu, 21 Jan 2010 00:02:07 +0800</pubDate><author>wolfg</author><comments>http://guoyong.org/2010/01/21/524#comments</comments><guid isPermaLink="false">http://guoyong.org/?p=524</guid><dc:creator>wolfg</dc:creator><fs:srclink>http://guoyong.org/2010/01/21/524</fs:srclink><fs:srcfeed>http://guoyong.org/feed</fs:srcfeed><fs:itemid>feedsky/wolfg/~7037877/406057737/5145807</fs:itemid></item></channel></rss>