Deploying War packages under Linux

Source: Internet
Author: User
First, put the corresponding war package directly under $tomcat_home/webapps (I upload it directly with the WINSCP tool) and then, modify the $tomcat_home/conf/server.xml, adding something similar to the following in the host configuration segment: < Context path= "/" docbase= "Hdfs-webdav.war" debug= "0" privileged= "true" reloadable= "true"/> which, The Docbase parameter identifies the name of the war package. Access is accessed using the following address: Http://ip:port/hdfs-webdav If you want to deploy the war package to the Tomcat root and access it directly using Http://ip:port, the following actions are required: First, unzip the war package and deploy it to the exception of $ Directories other than Tomcat_home/webapps. Delete all files under the $tomcat_home/webapps/root Directory III, in the $tomcat_home/conf/catalina/localhost directory, Create a new Root.xml file with a write similar to the following:
  1. <?xml version= ' 1.0 ' encoding= ' utf-8 '?>
  2. <context path= "/" docbase= "/usr/local/tomcat-6.0/webdav" debug= "0" privileged= "true" reloadable= "true"/>
Where docbase points to the name of the directory after the war package is extracted, the absolute path is required.

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.