Saturday, May 7, 2011

How to Transfer Data from linux machine to another Linux machine using "rsync"

Rsync
rsync is a program that behaves in much the same way that rcp does, but has many more options and uses the rsync remote-update protocol to greatly speed up file transfers when the destination file already exists.
The rsync remote-update protocol allows rsync to transfer just the differences between two sets of files across the network link, using an efficient checksum-search algorithm described in the technical report that accompanies this package.

Example

Lets you want to transfer files i.e abc.txt  def.txt which is place in the followoing location  /home/abc of 116.58.41.169 to /home/ali of  111.68.102.118

1) Go to the Source server directory i.e /home/abc of  116.58.41.169
2)  rsync -vrplogDtH  ishtiaq root@111.68.102.118:home/ali




Friday, May 6, 2011

How to start and Stop tomcat in centos 5.5



1.    ps xu | grep tomcat | grep -v grep | awk '{ print $2 }' | xargs kill -9
2.    cd /usr/local/jakarta/tomcat/bin/
3.    ./shutdown.sh
4.    ./shutdown.sh
5.    /etc/init.d/httpd stop
6.    ./startup.sh
7.    /etc/init.d/httpd startssl

how to configure Tomcat on Centos 5.5

Coming Soon...........