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