Graphical installation of Tomcat server under Linux _tomcat

Source: Internet
Author: User

Graphical installation of the Tomcat server under Linux specific process, for your reference, the specific content as follows

Upload Tomcat server:

First, you need to download the tomcat-upload to the server.

Install Tomcat Server

Decompression Tomcat Server Compression pack

It's already under the Java directory.

Tar zxvf apache-tomcat-7.0.72.tar.gz

The decompression succeeded:

Configure Environment variables

The tomcat server runtime requires JDK support, so you must configure the environment variables that the JDK uses

cd/etc/

LS #显示目录下所有文件及文件夹

Edit the profile file under/etc:

VI Profile

If an option appears-press: E

Which is when you configure the JDK.

To modify the boot port of the Tomcat server

cd/java/apache-tomcat-7.0.72/conf/

Enter the Conf directory of the Tomcat server:


Locate the Server.xml file.

Use:

VI Server.xml

Edit the Server.xml file.

Modify the port that the Tomcat server starts with, for example, by changing to 10001

After modifying the Server.xml file, save and exit.
esc–>:wq–> Carriage return

To start and close a Tomcat server

Start Tomcat Server

Enter the bin directory of the Tomcat server

Cd/java/apache-tomcat-7.0.72/bin

To start the Tomcat server by executing the./startup.sh command:

./startup.sh

Look at the log information for the Tomcat server to see if the Tomcat server has started properly, enter the logs directory under the Tomcat server, and open the Catalina.out file for viewing

Cd/java/apache-tomcat-7.0.72/logs

Cat Catalina.out

View Catalina.out


10001 Ports for access

Finally, if you want to access through IP:

/bin/iptables-i input-p TCP--dport 10001-j ACCEPT

Edit firewall rules.

This article is written by [familiar memory], all rights reserved.

The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.

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.