Configure tomcat in Centos6.2

Source: Internet
Author: User

Configure tomcat in Centos6.2

Here I am using tomcat6,

I am using the server version of Centos,

The premise is that JDK is installed and configured.

First, use samba to compress my tomcat package,

Copy the file to the shared folder and move it to the./usr directory,

# Tar-zxvf apache-tomcat-6.0.42.tar.gz

After decompression, copy the decompressed folder to the location where you want to install it. Here is/usr and renamed tomcat.

# Cp-R apache-tomcat-6.0.42/usr/tomcat

 

Go to/usr/tomcat/bin and change the startup. sh and shutdown. sh files to the executable mode.

# Chmod + x startup. sh

# Chmod + x shutdown. sh

 

Now that tomcat is installed, run the following command to start and end tomcat:

#./Startup. sh # start tomcat

#./Shutdown. sh # disable tomcat

 

:

Enter./startup. sh

 

 

Input./shutdown. sh

 

Check whether tomcat is running normally.

 

There are several methods:

The first is the desktop version with a graphical interface. You can open the browser and enter 127.0.0.1: 8080.

The second is to use other computers, open a browser, and enter the Server IP address + 8080;

 

Third, view tomcat logs,

Open./usr/tomcat/logs/

Enter tail-f catalina. out

For example:

This indicates that the instance is already running.

Type 4: Input commands:

Ps-ef | grep tomcat

Check whether Tomcat is contained. If so, it can be run.

 

To sum up, each blog has its own characteristics. I hope you will like it. If my blog is wrong, I hope you will give more valuable comments. Only multi-communication can make progress.

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.