Upload to the/usr/tomcat7 directory
Cp/home/toto/Desktop/apache-tomcat-7.0.47.tar.gz/usr/tomcat7/
2. Go to the Tomcat 7 directory.
Cd/usr/tomcat7
3. Unzip tomcat
Tar-xzvf apache-tomcat-7.0.47.tar.gz
4. Check whether tomcat is enabled for redhat,
Ps-ef | grep tomcat found that tomcat was not started
5. start tomcat by entering the bin directory of tomcat and executing the following command:
./Startup. sh
To disable tomcat, follow these steps:
./Shutdown. sh
6. To view the ip address of a machine, use ifconfig.
7. View tomcat startup status
[Root @ localhost bin] # ps-ef | grep tomcat
Root 2731 1 1 00:00:07 pts/0/usr/java/jdk1.6.0 _ 45/bin/java-Djava. util. logging. config. file =/usr/tomcat7/apache-tomcat-7.0.47/conf/logging. properties-Djava. util. logging. manager = org. apache. juli. classLoaderLogManager-Djava. endorsed. dirs =/usr/tomcat7/apache-tomcat-7.0.47/endorsed-classpath/usr/tomcat7/apache-tomcat-7.0.47/bin/bootstrap. jar:/usr/tomcat7/apache-tomcat-7.0.47/bin/tomcat-juli.jar-Dcatalina. base =/usr/tomcat7/apache-tomcat-7.0.47-Dcatalina. home =/usr/tomcat7/apache-tomcat-7.0.47-Djava. io. tmpdir =/usr/tomcat7/apache-tomcat-7.0.47/temp org. apache. catalina. startup. bootstrap start
Root 2894 2501 0 00:00:00 pts/0 grep tomcat
If the preceding status indicates that tomcat is started