<?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>MXcode &#187; linux</title>
	<atom:link href="http://mxcode.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://mxcode.com</link>
	<description>All about coding</description>
	<lastBuildDate>Fri, 13 Jan 2012 06:02:09 +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>tomcat cluster start error on redhat</title>
		<link>http://mxcode.com/2012/01/tomcat-cluster-start-error-on-redhat/</link>
		<comments>http://mxcode.com/2012/01/tomcat-cluster-start-error-on-redhat/#comments</comments>
		<pubDate>Fri, 13 Jan 2012 06:00:44 +0000</pubDate>
		<dc:creator>MXcode</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://mxcode.com/?p=45</guid>
		<description><![CDATA[The error message is below: ===================================================================== SEVERE: Unable to start cluster. org.apache.catalina.tribes.ChannelException: java.net.SocketException: No such device; No faulty members identified. at org.apache.catalina.tribes.group.ChannelCoordinator.internalStart(ChannelCoordinator.java:169) at org.apache.catalina.tribes.group.ChannelCoordinator.start(ChannelCoordinator.java:97) at org.apache.catalina.tribes.group.ChannelInterceptorBase.start(ChannelInterceptorBase.java:149) at org.apache.catalina.tribes.group.interceptors.MessageDispatchInterceptor.start(MessageDispatchInterceptor.java:147) at org.apache.catalina.tribes.group.ChannelInterceptorBase.start(ChannelInterceptorBase.java:149) at org.apache.catalina.tribes.group.ChannelInterceptorBase.start(ChannelInterceptorBase.java:149) at org.apache.catalina.tribes.group.GroupChannel.start(GroupChannel.java:407) at org.apache.catalina.ha.tcp.SimpleTcpCluster.start(SimpleTcpCluster.java:671) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1035) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) &#8230; <a href="http://mxcode.com/2012/01/tomcat-cluster-start-error-on-redhat/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The error message is below:<br />
=====================================================================<br />
SEVERE: Unable to start cluster.<br />
<span id="more-45"></span><br />
org.apache.catalina.tribes.ChannelException: java.net.SocketException: No such device; No faulty members identified.<br />
	at org.apache.catalina.tribes.group.ChannelCoordinator.internalStart(ChannelCoordinator.java:169)<br />
	at org.apache.catalina.tribes.group.ChannelCoordinator.start(ChannelCoordinator.java:97)<br />
	at org.apache.catalina.tribes.group.ChannelInterceptorBase.start(ChannelInterceptorBase.java:149)<br />
	at org.apache.catalina.tribes.group.interceptors.MessageDispatchInterceptor.start(MessageDispatchInterceptor.java:147)<br />
	at org.apache.catalina.tribes.group.ChannelInterceptorBase.start(ChannelInterceptorBase.java:149)<br />
	at org.apache.catalina.tribes.group.ChannelInterceptorBase.start(ChannelInterceptorBase.java:149)<br />
	at org.apache.catalina.tribes.group.GroupChannel.start(GroupChannel.java:407)<br />
	at org.apache.catalina.ha.tcp.SimpleTcpCluster.start(SimpleTcpCluster.java:671)<br />
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1035)<br />
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)<br />
	at org.apache.catalina.core.StandardService.start(StandardService.java:516)<br />
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)<br />
	at org.apache.catalina.startup.Catalina.start(Catalina.java:583)<br />
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br />
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br />
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br />
	at java.lang.reflect.Method.invoke(Method.java:597)<br />
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)<br />
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)<br />
Caused by: java.net.SocketException: No such device<br />
	at java.net.PlainDatagramSocketImpl.join(Native Method)<br />
	at java.net.PlainDatagramSocketImpl.join(PlainDatagramSocketImpl.java:172)<br />
	at java.net.MulticastSocket.joinGroup(MulticastSocket.java:277)<br />
	at org.apache.catalina.tribes.membership.McastServiceImpl.start(McastServiceImpl.java:233)<br />
	at org.apache.catalina.tribes.membership.McastService.start(McastService.java:373)<br />
	at org.apache.catalina.tribes.group.ChannelCoordinator.internalStart(ChannelCoordinator.java:154)<br />
	&#8230; 18 more<br />
================================================================================</p>
<p>Try this command: <strong>route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0</strong><br />
Then: <strong>route -e</strong><br />
You will see like this:<br />
[root@orasrv01 ~]# route -e<br />
Kernel IP routing table<br />
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface<br />
172.16.0.0      *               255.255.252.0   U         0 0          0 eth0<br />
169.254.0.0     *               255.255.0.0     U         0 0          0 eth0<br />
<strong>224.0.0.0       *               240.0.0.0       U         0 0          0 eth0</strong></p>
<p>OK!</p>
]]></content:encoded>
			<wfw:commentRss>http://mxcode.com/2012/01/tomcat-cluster-start-error-on-redhat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to generate SecureCRT key file from .pem file</title>
		<link>http://mxcode.com/2010/11/how-to-generate-securecrt-key-file-from-pem-file/</link>
		<comments>http://mxcode.com/2010/11/how-to-generate-securecrt-key-file-from-pem-file/#comments</comments>
		<pubDate>Tue, 02 Nov 2010 07:52:26 +0000</pubDate>
		<dc:creator>MXcode</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[amazon]]></category>
		<category><![CDATA[key]]></category>
		<category><![CDATA[securecrt]]></category>

		<guid isPermaLink="false">http://mxcode.com/2010/11/how-to-generate-securecrt-key-file-from-pem-file/</guid>
		<description><![CDATA[1、cat keypair.pem&#62;amazonec2key 2、chmod 600 amazonec2key 3、ssh-keygen -p -f amazonec2key 4、ssh-keygen -e -f amazonec2key &#62;&#62; amazonec2key.pub 5、use amazonec2key.pub as secuCRT’s key file. Remember put the amazonec2key in the same location.]]></description>
			<content:encoded><![CDATA[<p>1、cat keypair.pem&gt;amazonec2key</p>
<p>2、chmod 600 amazonec2key</p>
<p>3、ssh-keygen -p -f amazonec2key</p>
<p>4、ssh-keygen -e -f amazonec2key &gt;&gt; amazonec2key.pub</p>
<p>5、use amazonec2key.pub as secuCRT’s key file. Remember put the amazonec2key in the same location.</p>
]]></content:encoded>
			<wfw:commentRss>http://mxcode.com/2010/11/how-to-generate-securecrt-key-file-from-pem-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to install squid-2.5.STABLE13 on linux</title>
		<link>http://mxcode.com/2010/03/how-to-install-squid-2-5-stable13-on-linux/</link>
		<comments>http://mxcode.com/2010/03/how-to-install-squid-2-5-stable13-on-linux/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 03:12:20 +0000</pubDate>
		<dc:creator>MXcode</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://mxcode.com/2010/03/how-to-install-squid-2-5-stable13-on-linux/</guid>
		<description><![CDATA[To build and install the Squid Cache, type: % ./configure &#8211;prefix=/usr/local/squid % make all % make install To run a Cache, you will need to: 1. customize the squid.conf configuration file: % vi /usr/local/squid/etc/squid.conf 2. start the cache: % /usr/local/squid/sbin/squid &#8230; <a href="http://mxcode.com/2010/03/how-to-install-squid-2-5-stable13-on-linux/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>To build and install the Squid Cache, type:</p>
<p>	% ./configure &#8211;prefix=/usr/local/squid<br />
        % make all<br />
        % make install<br />
<span id="more-17"></span><br />
To run a Cache, you will need to:</p>
<p>	1. customize the squid.conf configuration file:<br />
	      % vi /usr/local/squid/etc/squid.conf</p>
<p>	2. start the cache:<br />
	      % /usr/local/squid/sbin/squid</p>
<p>If you want to use the WWW interface to the Cache Manager, copy the cachemgr.cgi program into your httpd server&#8217;s cgi-bin directory.	    </p>
]]></content:encoded>
			<wfw:commentRss>http://mxcode.com/2010/03/how-to-install-squid-2-5-stable13-on-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>open a port on linux server</title>
		<link>http://mxcode.com/2010/01/open-a-port-on-linux-server/</link>
		<comments>http://mxcode.com/2010/01/open-a-port-on-linux-server/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 14:39:47 +0000</pubDate>
		<dc:creator>MXcode</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[port]]></category>

		<guid isPermaLink="false">http://mxcode.com/2010/01/open-a-port-on-linux-server/</guid>
		<description><![CDATA[========================================= iptables -A RH-Firewall-1-INPUT -p tcp -m state &#8211;state NEW -m tcp &#8211;dport 3690 -j ACCEPT ========================================= RH-Firewall-1-INPUT is the name of the chain, and change 3690 to the port number you expect. You must restart the service to make &#8230; <a href="http://mxcode.com/2010/01/open-a-port-on-linux-server/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>=========================================<br />
iptables -A RH-Firewall-1-INPUT -p tcp -m state &#8211;state NEW -m tcp &#8211;dport 3690 -j ACCEPT<br />
=========================================<br />
RH-Firewall-1-INPUT is the name of the chain, and change 3690 to the port number you expect.</p>
<p>You must restart the service to make it effective:<br />
[root@localhost ~]# service iptables restart</p>
]]></content:encoded>
			<wfw:commentRss>http://mxcode.com/2010/01/open-a-port-on-linux-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>use kill with awk</title>
		<link>http://mxcode.com/2009/08/use-kill-with-awk/</link>
		<comments>http://mxcode.com/2009/08/use-kill-with-awk/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 06:40:51 +0000</pubDate>
		<dc:creator>MXcode</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://mxcode.com/2009/08/use-kill-with-awk/</guid>
		<description><![CDATA[kill `ps -ef &#124; awk &#8216;{if($11~/WorkOrderProcessor/) print$2}&#8217;`]]></description>
			<content:encoded><![CDATA[<p>kill `ps -ef | awk &#8216;{if($11~/WorkOrderProcessor/) print$2}&#8217;`</p>
]]></content:encoded>
			<wfw:commentRss>http://mxcode.com/2009/08/use-kill-with-awk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VI command &#8211; D &amp; x</title>
		<link>http://mxcode.com/2009/08/vi-command-d-x/</link>
		<comments>http://mxcode.com/2009/08/vi-command-d-x/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 03:16:45 +0000</pubDate>
		<dc:creator>MXcode</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://mxcode.com/2009/08/vi-command-d-x/</guid>
		<description><![CDATA[D The D command deletes from the cursor position to the end of the line. (D is a shortcut for d$.) x Often you want to delete only one or two characters. Just as r is a special change command &#8230; <a href="http://mxcode.com/2009/08/vi-command-d-x/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h2>D</h2>
<p>The D command deletes from the cursor position to the end of the line. (D is a shortcut for d$.)</p>
<h2>x</h2>
<p>Often you want to delete only one or two characters. Just as r is a special change command to replace a single character, x is a special delete command to delete a single character. x deletes only the character the cursor is on.</p>
]]></content:encoded>
			<wfw:commentRss>http://mxcode.com/2009/08/vi-command-d-x/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>VI command &#8211; dw&amp;dd</title>
		<link>http://mxcode.com/2009/08/vi-command-dw-dd/</link>
		<comments>http://mxcode.com/2009/08/vi-command-dw-dd/#comments</comments>
		<pubDate>Sun, 09 Aug 2009 09:35:08 +0000</pubDate>
		<dc:creator>MXcode</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://mxcode.com/2009/08/vi-command-dwdd/</guid>
		<description><![CDATA[dw dw deletes a word beginning where the cursor is positioned. Notice that the space following the word is deleted. dd The dd command deletes the entire line that the cursor is on. dd will not delete part of a &#8230; <a href="http://mxcode.com/2009/08/vi-command-dw-dd/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h2><strong>dw</strong></h2>
<p>dw deletes a word beginning where the cursor is positioned. Notice that the space following the word is deleted.</p>
<h2>dd</h2>
<p>The dd command deletes the entire line that the cursor is on. dd will not delete part of a line. Like its complement, cc, dd is a special command.</p>
]]></content:encoded>
			<wfw:commentRss>http://mxcode.com/2009/08/vi-command-dw-dd/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>VI command &#8211; (~)</title>
		<link>http://mxcode.com/2009/08/vi-command/</link>
		<comments>http://mxcode.com/2009/08/vi-command/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 03:04:32 +0000</pubDate>
		<dc:creator>MXcode</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://mxcode.com/2009/08/vi-command/</guid>
		<description><![CDATA[~ Changing the case of a letter is a special form of replacement. The tilde (~) command will change a lowercase letter to uppercase or an uppercase letter to lowercase. Position the cursor on the letter whose case you want &#8230; <a href="http://mxcode.com/2009/08/vi-command/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h2><strong>~</strong></h2>
<p>Changing the case of a letter is a special form of replacement. The tilde (~) command will change a lowercase letter to uppercase or an uppercase letter to lowercase. Position the cursor on the letter whose case you want to change, and type a ~. The case of the letter will change, and the cursor will move to the next character.</p>
]]></content:encoded>
			<wfw:commentRss>http://mxcode.com/2009/08/vi-command/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>VI command &#8211; r &amp; s</title>
		<link>http://mxcode.com/2009/08/vi-command-r-s/</link>
		<comments>http://mxcode.com/2009/08/vi-command-r-s/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 02:11:53 +0000</pubDate>
		<dc:creator>MXcode</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://mxcode.com/2009/08/vi-command-r-s/</guid>
		<description><![CDATA[r One other replacement edit is given by the r command. r replaces a single character with another single character. You do not have to press ESC to return to command mode after making the edit. s The S command, &#8230; <a href="http://mxcode.com/2009/08/vi-command-r-s/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h2><strong>r</strong></h2>
<p>One other replacement edit is given by the r command. r replaces a single character with another single character. You do not have to press ESC to return to command mode after making the edit.</p>
<h2><strong>s</strong></h2>
<p>The S command, as is usually the case with uppercase commands, lets you change whole lines. In contrast to the C command, which changes the rest of the line from the current cursor position, the S command deletes the entire line, no matter where the cursor is. vi puts you in insert mode at the beginning of the line. A preceding count replaces that many lines.</p>
<p>Both s and S put you in insert mode; when you are finished entering new text, press ESC.</p>
]]></content:encoded>
			<wfw:commentRss>http://mxcode.com/2009/08/vi-command-r-s/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>VI command &#8211; cw&amp;cc</title>
		<link>http://mxcode.com/2009/08/vi-command-cw-cc/</link>
		<comments>http://mxcode.com/2009/08/vi-command-cw-cc/#comments</comments>
		<pubDate>Mon, 03 Aug 2009 08:22:35 +0000</pubDate>
		<dc:creator>MXcode</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://mxcode.com/2009/08/vi-command-cw/</guid>
		<description><![CDATA[cw To change a word, combine the c (change) command with w for word. You can replace a word (cw) with a longer or shorter word (or any amount of text). cw can be thought of as “delete the word &#8230; <a href="http://mxcode.com/2009/08/vi-command-cw-cc/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h2><strong>cw</strong></h2>
<p>To change a word, combine the c (change) command with w for word. You can replace a word (cw) with a longer or shorter word (or any amount of text). cw can be thought of as “delete the word marked and insert new text until ESC is pressed.”</p>
<h2><strong>cc</strong></h2>
<p>To replace the entire current line, use the special change command, cc. cc changes an entire line, replacing that line with any amount of text entered before pressing ESC . It doesn’t matter where the cursor is located on the line; cc replaces the entire line of text.</p>
]]></content:encoded>
			<wfw:commentRss>http://mxcode.com/2009/08/vi-command-cw-cc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

