Virtual Box Direction Tomcat Setup

  • View
    20

  • Download
    7

Embed Size (px)

Transcript

!"#$%&$'()%*+%"#, Ubuntu OS -$ VirtualBox1. ev|-ee VirtualBox ..u'r.|e.ea.: Host -e2. ev|-ee Ubuntu ..u'r.|ea..ea.uv Desktop -a Server vrv.ea.uv Desktop .:'e.uv'ne.e.v:ee ISO r':..uv.a Burn .uv CD -a DVD Rom3. -e..e. VirtualBox .e.-.ear|u.: r.::eve:'aravra|u.:enn4. UI ra|u.:enn5. .:e Virtual Machine av-:|erer New .:u_-v. Wizard -re Continue6. .vv|u.:-.ra Virtual Machine .e:.earvera:uuu_u.7. -verve-vr:.-e (RAM) 8. -.ea Hard Disk e-u.e.:uuu_u.vrv-.ea..eae Hard Disk -:.e:e:e.uv Hard Disk ru.'e9. |u.:.:-eve:rvera Hard Disk -.uv.uu Fix -a Dynamic vrv-.ea.uv Dynamic .n:.:.uvrnvrra Hard Disk .:.10. -ververa Hard Disk11. |u.:.ee.e|e.ee.uvra:eeu -re Done .na.e-ver12. .:u_ Virtual Machine av-:rervenn13. av.:.e.:uuu_u. .a:.r.na- VirtualBox ruav.:-u.. Image le '-v |er.n: Image le (.iso) r'eev|-ee: -'ur.:v File->Virtual Media Manager14. .ea.ru CD/DVD Image re Add .vv.ea Image le r.a15. .:u_ CD Image r.n:.r:16. .r.na- VirtualBox .:u.. Image le (-a. CD/DVD e:..v.e.'.e) -reruv VirtualBox r.a.'rr17. .ea.ru Storage r -rer IDE Control (.e:av.uvrar.e.aueauvrr.uv CD/DVD) .vv-.ea CD/DVD Device vrv.uv Image le18. e'e.rev.e.:a.: Start Virtual Machine .:u.. Image le r.ea'19. .:.v.e.:uuu_u. |e.ea Virtual Machine re-:.ere Start aer.:au_-v.aenn.eee:e.e.:uuu_u.'e20. .:a.e.:uuu_u..e.ev.e:e...:u_-v.a.ra:uuu_u. Ubuntu ve.e. Windows e:er'e.rv.ev |erv.av-ve:uuu_u.-.ea.uv Microsoft Windows!"#$%&$'()%*+%"#, Apache Web Server .$)/--01*-"%*'() Ubuntu1. .r|u.: Terminal2. r Terminal -.ueveev: User ra.v-.uv root ere# sudo su.e-n:nree-u.e. Apache# apt-get install apache2 apache2-doc3. .ue|u.: Web Browser .e-n:n localhost r Address bar e.e. Apache e...:u_rar:enn4. e:e.'r'ne.u.n. r.:.ur /var/www5. reeau.e.'r'ne index.html'()%*+%"#, Apache Tomcat -$)/---01*-"%*'() Linux1. :uuu_u. Linux rr.uv CentOS -e.ev|-ee'ne.e. Tomcat :.e-rve'neere# tar xvfz apache-tomcat-6.0.32.tar.gz2. e:e.ea..-vr.a-.uv Web Server ra Apache Tomcat vrv.a.u'r /var/tomcat ..ae directory -:.e apache-tomcat-6.0.32 rer.ra 1 : directory /var/tomcat ere # mkdir /var/tomcat# mv apache-tomcat-6.0.32 /var/tomcat3. .vv-e symlink .nar:e:ev.r ere# ln -s /var/tomcat/apache-tomcat-6.0.32 /var/tomcat/home4. .va.v web application ra Tomcat .a.r Java Virtual Machine evv..au:r-:uuru JVM .u'r'-v |eu..:a..e. CentOS .e:e-.e. package Java e :uu.:.e.'r /usr/lib/jvm u:r..-v JVM |e.eav Java r.a ere# export JAVA_HOME=/usr/lib/jvm/java-openjdk5. v service ra Tomcat ere# sh /var/tomcat/home/bin/startup.she':.eu-e .:a.ue web Browser .e.ee url http://localhost:8080 .:u_-v.uenn6. .:a:.e. Tomcat .uvr. .:':e:e.r:uu.e Web server .a-ve User -u Tomcat |ee:e.'r'ne tomcat-users.xml rav directory /var/tomcat/home/conf ..a'e-ve username = tomcat .e:-ve role .uvr admin .e: manager* rrr: cong 'ne. ra Tomcat server .a restart service .na-.e.e.uev.ue 7. .:a.a.evev Tomcat Manager :uu.:-:u username .e: password.e:.:e:e.evev Web server . 'e'() Deploy Web Application1. Web Application r.e.uv Apache Tomcat .:.u'r directory /var/tomcat/home/webapps2. .:a.a Deploy web application rerv -.r:uue username .e: password .:r-ve' |erer Tomcat Manager3. -.eav scroll bar .vnu WAR le to deploy .e.ea'ne WAR r..:'4. .:a.ea'ne WAR r.a deploy .e-re Deploy .:u_ Web application .:re deploy5. re application re deploy .nareeau