top -b -d 2 > top.log
Logs the output of top to a file every 2 seconds.
-b: batch mode. Useful for sending output from top to other programs or to a file.
-d: Specifies the delay between screen updates.
top -b -d 2 > top.log
Logs the output of top to a file every 2 seconds.
-b: batch mode. Useful for sending output from top to other programs or to a file.
-d: Specifies the delay between screen updates.
yum install java
To export your JDK (i.e. set your environment variable) for applications like Tomcat:
export JAVA_HOME=/usr/lib/jvm/jre-1.6.0-openjdk.x86_64/
To start Tomcat you need to make the sh-scripts executable, e.g. execute in your tomcat/bin directory
chmod 774 *.sh