Tomcat cav nyob qhov twg?
Tomcat cav nyob qhov twg?

Video: Tomcat cav nyob qhov twg?

Video: Tomcat cav nyob qhov twg?
Video: yawg vam xav mus tham maiv kaus nplog teb 2024, Kaum ib hlis
Anonim

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.

Yog li ntawd, Catalina cav nyob qhov twg?

Los ntawm default, lub catalina . out file yog nyob rau hauv lub cov ntaub ntawv directory hauv qab Tomcat cov hauv paus directory.

Qhov thib ob, kuv yuav ua li cas thiaj li 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.

Ib yam 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.

Catalina log file yog dab tsi?

Cov catalina . log ntaub ntawv muaj tag nrho log cov lus uas tau sau rau Tomcat cov qhov system. tawm thiab system. yuam kev. Tomcat cov sab hauv log cov lus siv java.

Pom zoo: