Configuring Tomcat in Centos6.2

Source: Internet
Author: User

I'm using tomcat6 here,

I'm using a server version of CentOS,

The prerequisite is that the JDK is installed and configured.

First, I compress my tomcat through Samba,

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


# TAR–ZXVF Apache-tomcat-6.0.42.tar.gz

After unpacking, copy the extracted folder to the place where it needs to be installed, I am here/usr and renamed Tomcat

#cp –R Apache-tomcat-6.0.42/usr/tomcat

Then go to/usr/tomcat/bin and change the startup.sh,shutdown.sh file to executable mode

#chmod +x startup.sh

#chmod +x shutdown.sh

Now that Tomcat is installed, you can start and end tomcat directly by executing the following command

#./startup.sh #启动tomcat

#./shutdown.sh #关闭tomcat


Input./startup.sh




Input./shutdown.sh



Then check to see if Tomcat is running properly.


Here are a few ways:

The first is a graphical desktop version that opens the browser input 127.0.0.1:8080

The second is to use other computers, and then open the browser, enter the server ip+ 8080;


A third view of Tomcat logs,

Open the./usr/tomcat/logs/

Input tail-f catalina.out

For example:

This means that it is already running.

The fourth type: input command:

Ps-ef |grep Tomcat

Check to see if Tomcat is included. If so, that means you can run it.

To sum up, each has its own characteristics, I hope you like, if my blog appeared wrong, I hope you have more valuable comments. Only with more communication can progress be made.


Configuring Tomcat in Centos6.2

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.