Install Tomcat in Linux

Source: Internet
Author: User

Install Tomcat in Linux

1. tomcat6

Http://tomcat.apache.org/download-60.cgi

Download the .tar.gz extension.

It seems that there are no 32 or 64 points in tomcat on Linux and Unix. I guess it is during compilation to see what system you are using.

Ps: tar.gz is a type of compressed file, which is common in Linux and OSX. Both Linux and OSX can be directly decompressed to use this type of compressed file.

--------------------------------------------------------------------------------

2. Installation

1) decompress the file (in the directory of apache-tomcat-6.0.44.tar.gz)

Tar-zxvf apache-tomcat-6.0.44.tar.gz

Decompress the package to the folder: apache-tomcat-6.0.44. The installation is complete here. The following is the configuration environment variable.

2. Configure Environment Variables

Export CATALINA_HOME =/app/java/tomcat/apache-tomcat-6.0.44

Export CATALINA_HOME

3) Enable the configuration file

Source/etc/profile

/Etc/profile: environment variable configuration file.

Tomcat installation and configuration are complete.

4) You can use echo to view the environment variables, as shown in the following figure.

Echo $ CATALINA_HOME

Note: Before the environment variable name, add $

5) start tomcat (enter the bin directory under the tomcat installation directory)

./Catalina. sh start

If you want to check whether it is enabled, you can enter http: // localhost: 8080/in the browser (if there is no graphical interface but there is a LAN, you can use the ip address in http: // LAN: 8080/Access) If tomcat appears, it indicates that the installation and startup are successful.

6) Disable tomcat (go to the bin directory of tomcat installation)

Tomcat./shutdown. sh stop

7) project deployment

You only need to put the project package file under webapps (webapps directory under tomcat installation directory), start tomcat, and then access.

8) uninstall tomcat

Tomcat uninstallation is very simple. You only need to delete the CATALINA_BASE directory of Tomcat and then delete some environment variables.

Rm-rf/app/java/tomcat/apache-tomcat-6.0.44

9) Tomcat port Occupancy Analysis

Sometimes it is clear that the Tomcat configuration is OK, And the Tomcat service starts normally, but an error occurs when the page is opened. At this time, it may be that the Tomat port is occupied. You can check that those programs occupy the Tomcat port.

Netstat-an | grep 8080

Netstat-apn | grep 8080

Generally, you will find "SEVERE: Error initializing endpoint java.net. BindException: Permission denied <null>: 8080" in the catalina. out log.

Install JDK + Tomcat in RedHat Linux 5.5 and deploy Java Projects

Tomcat authoritative guide (second edition) (Chinese/English hd pdf + bookmarks)

Tomcat Security Configuration and Performance Optimization

How to Use Xshell to view Tomcat real-time logs with Chinese garbled characters in Linux

Install JDK and Tomcat in CentOS 64-bit and set the Tomcat Startup Procedure

Install Tomcat in CentOS 6.5

Tomcat details: click here
Tomcat: click here

This article permanently updates the link address:

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.