Tutorial: Build a Tomcat server under Fedora15 and install the application under Fedora15

Source: Internet
Author: User
Under Fedora15, to build a Tomcat server "which Linux Server version of OS is the best", I often see some netizens asking this question, and there is almost no accurate answer to this question. If it is best understood as "perfect" in the user's mouth, it is difficult to find any operating system.

FEdSet up To under ora 15McAt Server

"Which Linux Server version of OS is the best", I often see some netizens asking this question, and there is almost no accurate answer to this question. If it is better to think of it as "perfect", it is difficult to pick out any operating system. In this way, the saying "best" can only be benevolent or wise. So, find a mainstream Linux operating system and get familiar with it, and you will be able to get the most help from it.

Based on the latest Fedora version of Fedora 15CatInstall the server platform and related applications required by small and medium-sized enterprises quickly.

Why Tomcat is used, because it is a lightweight application server that is widely welcomed by programmers, and is widely used in scenarios where concurrent users are not many, it has become the preferred server for many small and medium-sized enterprises to develop and debug JSP programs.

To build a Tomcat server, you must pay attention to the following three points: server port setting, user role username and password setting, and Java environment installation and configuration. The following describes how to set up a Tomcat server through several steps.

First, set the server port: the port number is set in conf/server. xml under the Tomcat installation directory. Users can set the port number at will, but do not conflict with the existing program port number.

Second, user role username User Password: for developers, configuring User Role username and user password is required by configuring conf/tomcat-users.xml In the Tomcat installation directory.

Before Tomcat 6.0.30, the Tomcat manager role was only manager. After Tomcat 6.0.30, the Tomcat management role changed to manager-gui, manager-scripq, manager-jmx, and manager-StatWhich have different permissions.

Manager-gui: allows access to the html graphical interface and status page

Manager-scripq: allows access to the text interface and status page

Manager-jmx: allows access to the jmx proxy and status page

Manager-status: allows access to the status page.

In this way, users can set roles as needed. For developers, it is best to set the user role as manager-gui, and set the user name and password according to your habits. The configuration here is as follows:

In the preceding configuration file, a manager-gui user is configured with the following usernames and passwords: tomcat and tomcat.

Finally, run tomcat server: start tomcat and run startup under the bin directory of tomcat installation. sh (linux) or startup. bat (windows), and then enter: http: // localhost: 8080/in the browser. If the following interface is displayed, the configuration is successful. Click Tomcat Manager and enter the user name and password to enter the management background.

Go to the Tomcat Management Background

[Content navigation]
Page 1st: Build Tomcat server under Fedora 15 Page 2nd: install and configure Java environment method 1
Page 2: install and configure the Java environment Page 4th: Install MySQL database under Fedora 15
Page 5th: Install Virtualbox Virtual Machine Under Fedora 15
Related Article

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.