Lubuntu Virtual machine installation and Web project-to-Service on Windows systems (iii)

Source: Internet
Author: User

Deployment of the project under Ubuntu virtual machine

One: The war from the local through the XFTP 4 to the virtual machine Tomcat directory under the WebApps directory

2: Modify the Server.xml under Tomcat

Unpackwars= "true" autodeploy= "true" > <!--Singlesignon valve, share authentication between Web applications documentation at:/docs/config/valve.html-<!--<valve classname= "Org.apache.catalina.authenticator.SingleSignOn" />-<!--Access Log processes all example. Documentation at:/docs/config/valve.html note:the pattern used is equivalent to using pattern= "Common"--<valve classname= "Org.apache.catalina.valves.AccessLogValve" directory= "Logs"prefix= "Localhost_access_log." suffix= ". txt"pattern= "%h%l%u%t &quot;%r&quot; %s%b "/><context path= "" docbase= "/usr/src/tomcat/apache-tomcat-7.0.22/webapps/benben-web" debug= "0" privileged= " True "/></Host> </Engine> </Service></Server>

Add the Red Code section to the Server.xml, Docbase for your project path

3 Modifying the virtual machine hosts

Open Terminal: vi/etc/hosts

[Email protected]:/# vi/etc/hosts#127.0.0.1      localhost127.0.0.1       benben-virtual-  machine127.0.0.1       benben.netfor  IPV6 capable hosts::1     Ip6-localhost ip6-loopbackfe00::0 ip6-localnetff00::0 ip6-mcastprefixff02::1 ip6- allnodesff02::2 ip6-allrouters~                     

Red section add domain name for yourself

4: Modify the local hosts

#127.0.0.1      localhost#127.0.0.1       benben-virtual- Machine xxx.x.x.x (This is the IP address of the VM)      benben.net   Modify here  

4: Test

Open Apache2:sudo/etc/init.d/apache2 start on terminal

Open Tomcat:sudo. /startip.sh

Finally open the link on the Web page http://benben.net:8080 This address is a separate Tomcat deployment project

Http://benben.net This address is Apache integrated Tomcat deployment project

Lubuntu Virtual machine installation and Web project-to-Service on Windows systems (iii)

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.