Installation and project deployment of Tomcat under Linux

Source: Internet
Author: User
Tags wrapper tomcat server

Recently installed the JDK under Linux, in order to round my previous wish, the Tomcat also installed, the way to deploy a project, but also a small and fulfilling sense

Nonsense not to say, directly on the process

One. Download and install the corresponding JDK and configure the Java environment.

For installation of JDK see my last Post http://www.cnblogs.com/cl1255674805/p/5720665.html

two. Download install tomcat(http://tomcat.apache.org/)

[Email protected] ~]# Unzip Apache-tomcat-6.0.30.zip

[Email protected] ~]# MV apache-tomcat-6.0.30//usr/local/

[Email protected] ~]cd/usr/local/

[Email protected] local]# ln-s/usr/local/apache-tomcat-6.0.30//usr/local/tomcat

Three. Modify the boot port of the Tomcat server

[Email protected] apache-tomcat-7.0.70]# cd/usr/local/apache-tomcat-7.0.70/conf
[[email protected] conf]# ls
Catalina catalina.properties logging.properties Tomcat-users.xml
Catalina.policy context.xml server.xml web. xml
[Email protected] conf]# VI server.xml

1. Press I on the keyboard to enter the editing state

2. Modify the port to 9999

3. Press ESC, then enter the colon ":", then w,q press ENTER again to save the exit

Four. Start the Tomcat server

[Email protected] conf]# Cd/usr/local/tomcat/bin
[[email protected] bin]# ls
Bootstrap.jar daemon.sh startup.sh
Catalina.bat Digest.bat Tomcat-juli.jar
catalina.sh digest.sh tomcat-native.tar.gz
Catalina-tasks.xml Setclasspath.bat Tool-wrapper.bat
Commons-daemon.jar setclasspath.sh tool-wrapper.sh
commons-daemon-native.tar.gz Shutdown.bat Version.bat
Configtest.bat shutdown.sh version.sh
Configtest.sh Startup.bat
[Email protected] bin]#./startup.sh
Using catalina_base:/usr/local/tomcat
Using Catalina_home:/usr/local/tomcat
Using Catalina_tmpdir:/usr/local/tomcat/temp
Using jre_home:/usr
Using CLASSPATH:/usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar
Tomcat started.
[Email protected] bin]#

1. Access Tomcat

OK, indicating successful start

Five. Deployment project

1. Place the war pack under the path

[Email protected] apache-tomcat-7.0.70]# Cd/usr/local/apache-tomcat-7.0.70/webapps

2. Visit the page of the project

OK, access successful

Installation and project deployment of Tomcat under Linux

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.