Install and configure Tomcat in RedHatEnterpriseLinuxServer5.4

Source: Internet
Author: User
1: Download tomcat: coreapache-tomcat-7.0.19.tar.gz2: install tomcat only need to extract it can: tarxzvfapache-tomcat-7.0.19.tar.gz-C/usr // a folder named mv/usr/apache-tomcat-7.0.19 will be created under the/usr directory.

1: Download tomcat: core apache-tomcat-7.0.19.tar.gz

2: To install tomcat, you only need to decompress it:

Tar xzvf apache-tomcat-7.0.19.tar.gz-C/usr // a folder for apache-tomcat-7.0.19 will be created under the/usr directory

Mv/usr/apache-tomcat-7.0.19/usr/Tomcat7.0.19 // rename the directory to Tomcat7.0.19

3: configure the environment variable vi/etc/profile

Find the export path user logname mail hostname histsize inputrc and change it to the following content:

TOMCAT_HOME = '/usr/Tomcat7.0.19 ′
PATH = $ PATH: $ TOMCAT_HOME/bin
Export TOMCAT_HOME
Export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC

Note: The vi command must be accessed as root; otherwise, the system will prompt "this file is a read-only file", resulting in an error that cannot be modified successfully.

4: restart the server (or source/etc/profile) to make the configuration file take effect.

5. Enter startup. sh to start the tomcat service.

6: Open the browser and enter http: // localhost: 8080 to view the familiar tomcat interface.

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.