Red Hat Enterprise Linux7 Configuring Tomcat

Source: Internet
Author: User
Tags unpack tomcat server apache tomcat









The author is a Java front-end of a new, the computer has just undergone a transformation, and then re-installed Win10pro, all the development tools to reinstall, tangled up later decided to put some development tools from Windows to Linux, First consider the Ubuntu17.04, it is said that this is the desktop version of the classic Linux, but may be some of their own wonderful, and then installed after the Ubuntu feel is not very enjoyable, and then the main position shifted to the redhat up.



First Redhat the author chooses Redhat Enterprise Linux7, this is the server with more than one kind of Linux, so we can directly do a front-end placed on the server can be accessed, convenient development testing, Some time ago the author in the blog Park introduced himself in Red Hat 7 installation configuration Eclipse Experience, of course, installation is still very successful, can be used, today I, for the development of Java Web Preparation, and then download the development tools, here I choose Apache Tomcat, is also a mainstream Web server, in order to keep up with the trend of software development, here I chose the Tomcat9.0 version, and now to everyone attached to the download link tomcat: https://mirrors.tuna.tsinghua.edu.cn/apache/ Tomcat/tomcat-9/v9.0.0.m26/bin/apache-tomcat-9.0.0.m26.tar.gz, what's back? Download link for document: https://mirrors.tuna.tsinghua.edu.cn /apache/tomcat/tomcat-9/v9.0.0.m26/bin/apache-tomcat-9.0.0.m26-fulldocs.tar.gz, of course, here is the download of the tar package, I believe most people should be aware of the tar package.



Words not much to say directly into the installation process:


Tar -xzvf apache-tomcat-9.0.0.M26.tar.gz #Unpack the command with the unpack command
Cd apache-tomcat-9.0.0.M26 #Enter the unpacked directory
#Tomcat is a green version, so you can use it as long as you unpack it, no need to install it. 


So although it seems to be complete, but in the establishment of the project is still hidden a hidden danger, may lead to the next step of our server can be started but not normal access.



We continue to use the Tomcat process:



First, create a new project (Dynamic Web project), such as:






Then we follow the wizard step-by-step:






Point New Runtime






Next>






Then click Browser to select the path of Tomcat, the following JRE selects the previously installed jdk1.8, and finally click Finish






One more time, finish.



This creates the right project.



Let's add the server server:






Click the blue Word in the icon






Tomcat is the one you just chose, then click Next.






Add the new project, so that the server is loaded successfully, then I will test the server:






Right-click to select Start, turn on the server, and then open Firefox, enter: http://localhost:8080/






It turns out that the problem arises: The origin server did not the find a current representation for the target resource or was not willing to disclose t Hat one exists.



Here's how to fix it:






Right-click the Tomcat server and select Add and remove, we remove the project we just added, and then double-click the server






This interface appears, the bottom left corner of the three options to select the second, and then save, re-add on the new project restart the server can be found to use:









Red Hat Enterprise Linux7 Configuring Tomcat


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.