Cov ntaub ntawv Catalina nyob qhov twg hauv Tomcat?
Cov ntaub ntawv Catalina nyob qhov twg hauv Tomcat?

Video: Cov ntaub ntawv Catalina nyob qhov twg hauv Tomcat?

Video: Cov ntaub ntawv Catalina nyob qhov twg hauv Tomcat?
Video: Yog ntuj tsis pab ntshe kuv tuag lawm 8/6/2018 2024, Kaum ib hlis
Anonim

Los ntawm default, lub catalina . tawm ntaub ntawv yog nyob rau hauv cov ntawv teev npe hauv qab Tomcat cov hauv paus directory. Piv txwv li, /opt/netiq/idm/apps/ tomcat /logs/ catalina.

Qhov sib thooj, Catalina tawm cov ntaub ntawv hauv Tomcat yog dab tsi?

xml ntaub ntawv khaws cov ntawv teev cia rau cov neeg siv Daim Ntawv Thov, uas qhia tag nrho log lus rau idapps. tawm . Cov catalina . tawm ntaub ntawv yog nyob rau hauv lub computer uas hosts lub Tomcat server piv txwv. Txhua qhov piv txwv server muaj nws tus kheej catalina.

Tsis tas li ntawd, Tomcat teev nyob qhov twg ntawm Windows? Cov ntaub ntawv uas muaj koj kaw lus configuration tuaj yeem muab tso rau hauv tomcat server classes directory, eg. C: Program FilesApache Software Foundation Tomcat 5.0 serverclasses. Muaj ntau qhov chaw uas koj tuaj yeem tso tau kaw lus configuration file.

Kuj Paub, Tomcat cav nyob qhov twg?

Rau Tomcat qhov tseeb cov ntaub ntawv yog tso nyob rau hauv CATALINA_BASE/ cov ntaub ntawv phau ntawv. Tus nqi ntawm CATALINA_BASE teeb tsa los ntawm IntelliJ IDEA yuav raug luam tawm hauv lub console ntawm Khiav lossis Debug lub qhov rais. Koj tseem tuaj yeem nrhiav tau log cov ntaub ntawv hauv qab lub tswv yim.

Yuav ua li cas kuv txwv Tomcat cav los ntawm kev nkag mus rau hauv Catalina tawm?

tawm tag nrho, teeb CATALINA_OUT = / dev / null hauv catalina .sh. Koj yuav pom log cov ntaub ntawv tsim raws li koj log kev teeb tsa.

Koj tuaj yeem sim ua qhov no:

  1. Kho kom raug "$CATALINA_BASE"/bin/catalina.sh cov ntaub ntawv.
  2. Nrhiav CATALINA_OUT="$CATALINA_BASE"/logs/catalina. tawm.
  3. Hloov nrog txoj kev tshiab.

Pom zoo: