Tomcat webapps folder Ubuntu nyob qhov twg?
Tomcat webapps folder Ubuntu nyob qhov twg?

Video: Tomcat webapps folder Ubuntu nyob qhov twg?

Video: Tomcat webapps folder Ubuntu nyob qhov twg?
Video: Install and Configure Apache Tomcat on Ubuntu 2024, Kaum ib hlis
Anonim

3 Teb. tomcat webapps hauv paus yog/var/lib/ tomcav 7 / webapps /thiab koj yuav xav teeb tsa qhov txuas txuas rau nws hauv/usr/qhia tawm/ tomcat 7 : cd/usr/qhia tawm/ tomcat 7 /ln -s /var/lib/ tomcat 7 / webapps /.

Cov lus nug tseem yog, Tomcat webapps nplaub tshev nyob qhov twg?

Lub neej ntawd phau ntawv rau Tomcat cov ntaub ntawv yuav nyob hauv/usr/local/tomcat9, koj tuaj yeem saib cov ntaub ntawv teeb tsa sab hauv conf nplaub tshev , nplooj ntawv tseem ceeb uas koj tau pom saum toj no, thaum koj qhib koj lub vev xaib ntawm 8080 chaw nres nkoj nyob hauv/usr/local/tomcat9/ webapps /ROOT/.

Tsis tas li, Tomcat nplaub tshev nyob qhov twg? Cov Tomcat cov ntaub ntawv teeb tsa, hauv XML hom, nyob hauv "conf" sub- phau ntawv ntawm koj Tomcat ntsia phau ntawv , xws li " c: myWebProject tomcat conf "(rau Windows) lossis" ~/myWebProject/ tomcat /conf " (rau macOS). Cov ntaub ntawv teeb tsa tseem ceeb yog: server. xml.

Ib yam nkaus, tib neeg nug, Tomcat cov npe teeb tsa ntawm Ubuntu nyob qhov twg?

Hloov tomcat 7 rau koj lub npe pob khoom tsim nyog. Los ntawm default rau Tomcat 7 nws yog feem ntau/usr/qhia tawm/ tomcat 7.

Muaj peb daim ntawv tseem ceeb rau Tomcat:

  1. /etc/tomcat{X} rau kev teeb tsa.
  2. /usr/share/tomcat {X} rau runtime, hu ua CATALINA_HOME.
  3. /usr/share/tomcat{X}-root rau webapps.

Kuv yuav ua li cas thiaj paub tias Tomcat tau teeb tsa Linux?

Ib txoj hauv kev yooj yim los saib yog Tomcat yog khiav mus kuaj yog tias muaj kev pabcuam mloog ntawm TCP chaw nres nkoj 8080 nrog cov lus txib netstat. Qhov no yuav, tau kawg, tsuas yog ua haujlwm yog tias koj tab tom khiav Tomcat ntawm qhov chaw nres nkoj koj teev (nws qhov chaw nres nkoj 8080, piv txwv li) thiab tsis khiav lwm qhov kev pabcuam ntawm qhov chaw nres nkoj ntawd.

Pom zoo: