SSH Operation Linux Command

Source: Internet
Author: User

One, restart Tomcat under Linux

Enter the Bin directory under Tomcat: Cd/user/standard/tomcat/bin;

Use the Close command:./shutdown.sh;

See if the Java process is closed: Ps-ef|grep java;

Can kill the process directly: Kill-9 7010

Start tomcat:./startup.sh;

To view the live log:

Switch to: CD usr/local/tomcat5/logs;

Tail-f catalina.out;

Exit Live LOG: Ctrl + C

View log: Tail-f/usr/java/apache-tomcat-6.0.35/logs/localhost.2016-04-22.log

The input command is then manipulated, and an error is output.


Rm-rf enforce cascading removal of file directories  

--------------------------------- 

1. Use the date command in the virtual terminal to view and set the system time  
View the operation of the system clock:  
# date 
Set the operation of the system clock:  
# date 091713272003.30 
Common formatting: 
# Date Month day year. seconds  
2. Use the Hwclock or clock command to view and set the hardware clock  
View Hardware clock operation:  
# hwclock--show or  
# Clock--show 
September 17, 2003 Wednesday 13:24 11 sec -0.482735 seconds 
To set the operation of the hardware clock:  
# hwclock--set--date= "09/17/2003 13:26:00"  
or  
# clock--set--date= "09/17/2003 13:26:00"  
Common formatting: hwclock/ Clock--set--date= "month/day/year: minutes: Seconds".  
3. Synchronize the system clock and hardware clock  
Linux System (the author uses Red Hat 8.0, other systems have not done experiments) the hardware clock and the system clock are synchronized after the default reboot. If it is not easy to reboot (the server usually restarts infrequently), use the clock or the Hwclock command to synchronize the system clock and the hardware clock.  
hardware clock synchronized with system clock:  
# hwclock--hctosys 
or  
# clock--hctosys 
above command,-- Hctosys represents hardware clock to SYStem clock.  
system clock and Hardware clock synchronization:  
# hwclock--systohc 
or  
# clock--systohc 

SSH operation of Linux commands

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.