The following describes how to install tomcat61 in RedHat in VMware and download tomcat6http: // tomcfor LInux.
The following describes how to install Tomcat 6 in VMware RedHat.
1. Download Tomcat 6 for LInux
Http://mirror.bit.edu.cn/apache/tomcat/tomcat-6/v6.0.37/bin/apache-tomcat-6.0.37.tar.gz
2. install Tomcat 6
Copy the apache-tomcat-6.0.37.tar.gz file to the opt directory in Redhat. You can also put it in another directory.
Enter the following command on the terminal:
[Root @ bogon opt] # tar-zxvf apache-tomcat-6.0.37.tar.gz
In this example, extract the compressed file apache-tomcat-6.0.37.tar.gz to apache-tomcat-6.0.37.
3. Add a Tomcat user
Modify the file apache-tomcat-6.0.37/conf/tomcat-users.xml, add
4. start Tomcat
Enter the bin directory/opt/apache-Tomcat-6.0.37/bin of tomcat, and enter the following command on the terminal:
[Root @ bogon bin] #./startup. sh
Using CATALINA_BASE:/opt/apache-tomcat-6.0.37
Using CATALINA_HOME:/opt/apache-tomcat-6.0.37
Using CATALINA_TMPDIR:/opt/apache-tomcat-6.0.37/temp
Using JRE_HOME:/opt/jdk1.6.0 _ 20/jre
Using CLASSPATH:/opt/apache-tomcat-6.0.37/bin/bootstrap. jar
5. Access Tomcat
In the FireFox browser, enter: http: // localhost: 8080/
The welcome page of tomcat indicates that tomcat is successfully installed.
6. Allow the host to access Tomcat in the VM
(1) Click edit and click virtual network settings.
(2) Select vmnet8, click NET setting, and click Add in port forwarding.
Host port: 8080 (the port on which the Host wants to map)
Virtual machine IP Address: 192. 168. ***. *** (enter the Linux IP Address in your Virtual machine)
Virtual machine Port: 8080 (the Port mapped in the Virtual machine)
Related reading:
Load Balancing between Apache and multiple Tomcat clusters in LinuxHttp://www.linuxidc.com/Linux/2012-01/51731.htm
Nginx Tomcat Cluster load balancing solution notes http://www.linuxidc.com/Linux/2013-07/86827.htm
Example details Tomcat component installation + Nginx reverse proxy Tomcat + Apache use mod_jk and mod_proxy Reverse Proxy and load balancing http://www.linuxidc.com/Linux/2013-06/85290.htm
Apache + Tomcat environment setup (JK deployment process) http://www.linuxidc.com/Linux/2012-11/74474.htm
For more highlights, see the next page: http://www.linuxidc.com/Linux/2013-09/90675p2.htm