Tomcat Server installation Teaching (Linux system)

Source: Internet
Author: User
Tags tomcat server

Today's major courses are:

Install JDK before installing using Tomcat

Download and installation of the Tomcat server
Tomcat Directory Interpretation

1.Tomcat Server download and installation 1) download

Click to go to download
1. After entering the webpage, we will enter the following interface.
2. Select the appropriate version number in the left guide flange according to your requirements
3. In the Right topic section, select the installation package under the Linux system

Which is the tar.gz under the core.
or zip

2) Installation

1. Unzip the downloaded package to the Linux folder, where I put the

/opt

Directory under
3. Configuration of permissions
Switch to root user execution

chmod -R777 /opt/bin/*//将所有的文件赋予权限

4. Configure Environment variables
Modify the profile file in directory/etc, using the command: Vi/etc/profile

export CATALINA_HOME=/opt/tomcatexport CLASSPATH=.:$JAVA_HOME/lib:$CATALINA_HOME/libexport PATH=$PATH:$CATALINA_HOME/bin

Execute command after configuration is complete: source/etc/profile, if there is no prompt error, proves the configuration is successful
5. Execute the following command

//切换到bin目录下cd /opt/tomcat/bin///执行文件sh startup.sh

6. If the following prompt indicates that the installation was successful

Using CATALINA_BASE:   /opt/tomcatUsing CATALINA_HOME:   /opt//opt/tomcat/tempUsing JRE_HOME:        /usr/jdk1.6.0_23Using CLASSPATH:       /opt/tomcat/bin/bootstrap.jar

7. Accessing Tomcat home page on client

http://localhost:8080///默认端口号是8080//其他客户端只需要将localhost换成本地ip地址就行
Tomcat Directory Interpretation

Bin: Holds executable scripts for starting and shutting Tomcat.
Conf:tomcat configuration files, such as Server.xml (Tomcat server configuration file) and Web. XML (Shared profile by all WebApps), password forgot to read
Tomcat-users.xml. WebApps: Store Web applications, and applications that users themselves need to deploy are also placed in this directory.
Work:tomcat the temporary files generated by the runtime, including the class files generated after the JSP compilation. Logs: The log file is stored.
TEMP:JVM the directory used to hold temporary files (java.io.tmpdir).

Tomcat Server installation Teaching (Linux system)

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.