RedHatLinux5Tomcat installation and environment Configuration

Source: Internet
Author: User
Install 1.atat download apache-tomcat-5.5.27.tar.gz 2. Go to/var/ftp/pubto run the command tar-xzvfapache-tomcat-5.27.tar.gz 3. Move the extracted directory to the root directory and rename it. Mvapache-tomcat-5.5.27/tomcat54. enter the tomcat/bin directory and enter./startup.

Install

1. Download apache-tomcat-5.5.27.tar.gz from the official website of Tomcat.

2. Run the command tar-xzvf apache-tomcat-5.5.27.tar.gz in/var/ftp/pub.

3. Move the extracted directory to the root directory and rename it. Mv apache-tomcat-5.5.27/tomcat5

4. Go to the tomcat/bin directory and enter./startup. sh to start tomcat.

5. Enter http: // ip: 8080/to display the welcome page.

Set to auto start upon startup

1. vi etc/rc. d/rc. local add export JAVA_HOME =/var/ftp/pub/jdk1.6.0 _ 15 to the file
/Tomcat5/bin/startup. sh

2. Restart the reboot command

Notes:

1. For details about tar commands, refer to man tar or google.

2. After starting tomcat, you can use ps-aux | grep tomcat to view its process. kill-9 pid to kill the process.

3. if you enter http: // ip: 8080/, you cannot see the welcome page. The first is to check whether tomcat is enabled, and the other reason is to go to tomcat5/logs/to view catalina. out to view tomcat startup logs. You can also view

4. In % tomact % conf/tomact_user.xml, you can view and set tomcat user names, passwords, and role permissions.








If you want to add an administrator user (because tomcat does not set a user at the beginning, an error occurs when you enter the management page), you can add one:

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.