Categories
-
Recent Posts
Hot Link
Blogroll
Archives
- January 2012 (1)
- November 2011 (2)
- November 2010 (3)
- September 2010 (2)
- June 2010 (1)
- March 2010 (5)
- January 2010 (1)
- December 2009 (2)
- October 2009 (1)
- September 2009 (2)
- August 2009 (6)
- July 2009 (2)
Meta
Category Archives: linux
tomcat cluster start error on redhat
The error message is below: ===================================================================== SEVERE: Unable to start cluster.
Posted in linux
Leave a comment
How to generate SecureCRT key file from .pem file
1、cat keypair.pem>amazonec2key 2、chmod 600 amazonec2key 3、ssh-keygen -p -f amazonec2key 4、ssh-keygen -e -f amazonec2key >> amazonec2key.pub 5、use amazonec2key.pub as secuCRT’s key file. Remember put the amazonec2key in the same location.
how to install squid-2.5.STABLE13 on linux
To build and install the Squid Cache, type: % ./configure –prefix=/usr/local/squid % make all % make install
open a port on linux server
========================================= iptables -A RH-Firewall-1-INPUT -p tcp -m state –state NEW -m tcp –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 … Continue reading
use kill with awk
kill `ps -ef | awk ‘{if($11~/WorkOrderProcessor/) print$2}’`
Posted in linux
Leave a comment
VI command – D & x
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 … Continue reading
VI command – dw&dd
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 … Continue reading
Posted in linux
2 Comments
VI command – (~)
~ 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 … Continue reading
Posted in linux
2 Comments
VI command – r & s
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, … Continue reading
Posted in linux
3 Comments
VI command – cw&cc
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 … Continue reading
Posted in linux
Leave a comment