Tomcat Installation Deployment

Source: Internet
Author: User

System environment:

[[email protected] logs] # uname-a # 1 SMP Fri Jan 17:17:51 EST. x86_64 x86_64 x86_64 gnu/linux [[email protected] logs] #  Red Hat Enterprise Linux Server release 5.8 (Tikanga)

Installation package:

Jdk-7u45-linux-x64.gz

Apache-tomcat-6.0.43.tar.gz

Installation process:

First install the JDK environment, to see the JDK installation see previous jetty installation http://www.cnblogs.com/cheerong/p/4375894.html

1, configure the system environment, modify the ~/.bash_profile file, add the content:

tomcat_home=/usr/local/tomcat6.0catalina_home=/usr/local/tomcat6.0catalina_base=/usr/local/ tomcat6.0java_home=/usr/local/jdk1.7java_bin=/usr/local/jdk1.7/binpath= $PATH: $JAVA _ Bin:/usr/local/maven/bin: $HOME/Binclasspath= $JAVA _home/lib/dt.jar: $JAVA _home/lib/Tools.jar export java_home java_bin PATH CLASSPATH jetty_home tomcat_home catalina_home catalina_base
Run the source ~/.bash_profile for the configuration to take effect

2. Unpack the installation package:

TAR-XF apache-tomcat-6.0.43.tar.gz-c/usr/local/-S apache-tomcat-6.0.43 tomcat6.0

3. Start Tomcat

[[email protected] bin]#./catalina.sh StartUsing catalina_base:/usr/local/tomcat6.0using catalina_home:/usr/local/tomcat6.0using Catalina_tmpdir:/usr/local/tomcat6.0/tempusing jre_home:/usr/local/jdk1.7Using CLASSPATH:/usr/local/tomcat6.0/bin/Bootstrap.jar[[email protected] bin]#PS aux|grep javaRoot 3971 12.2 5.7 539088 59084 pts/0 Sl 16:44 0:04/usr/local/jdk1.7/bin/java-djava.util.logging.config.fil E=/usr/local/tomcat6.0/conf/logging.properties-djava.util.logging.manager= org.apache.juli.classloaderlogmanager-djava.endorsed.dirs=/usr/local/tomcat6.0/endorsed-classpath/usr/local/ tomcat6.0/bin/bootstrap.jar-dcatalina.base=/usr/local/tomcat6.0-dcatalina.home=/usr/local/tomcat6.0- djava.io.tmpdir=/usr/local/tomcat6.0/temp Org.apache.catalina.startup.Bootstrap startroot4048 78.3 5.9 656604 60564 pts/0 Sl 16:44 0:04/usr/local/jdk1.7/bin/java-djava.util.logging.config.file=/usr/loc Al/tomcat6.0/conf/logging.properties-djava.util.logging.manager=org.apache.juli.classloaderlogmanager- Djava.endorsed.dirs=/usr/local/tomcat6.0/endorsed-classpath/usr/local/tomcat6.0/bin/bootstrap.jar- dcatalina.base=/usr/local/tomcat6.0-dcatalina.home=/usr/local/tomcat6.0-djava.io.tmpdir=/usr/local/tomcat6.0/temp Org.apache.catalina.startup.Bootstrap startroot4061 0.0 0.0 61176 724 pts/0 r+ 16:44 0:00grep java[[email protected] bin]#netstat-tpln|grep 8080[[email protected] bin]#Netstat-tpln|grep 8088TCP 0 0::: 8088:::* LISTEN 3971/java

For example, to view the Tomcat process, the Tomcat port number defaults to 8080, and this is where I run after I change to 8088.

Modify the Tomcat port number to modify the Server.xml file:

<connector port="8088" protocol="http/1.1"                 ConnectionTimeout="20000"                redirectport="8443 "

Tomcat Installation Deployment

Related Article

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.