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 "%r" %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)