开发者

Tomcat view catalina.out log file

In Red Hat,

cd /var/lib/tomcat
tail -f logs/catalina.out

I can see the开发者_开发问答 log in the console.

In Ubuntu,

cd /var/lib/tomcat6
tail -f logs/catalina.out

Nothing show out in the console.

May I know what is the problem? Which configuration that I need to look to?


Tomcat 7 Ubuntu Server 12.04 LTS:

tail -f /var/log/tomcat7/catalina.out


locate catalina.out and find out where is your catalina out. Because it depends.

If there is several, look at their sizes: that with size 0 are not what you want.


 cd /usr/local/tomcat/logs
 tail -f catalina.out


Sometimes it is located in different places. It depends on the server. You can use find to find it:

 find / -name catalina.out 

If you encounter permission issues, add sudo to the command:

sudo find / -name catalina.out

That's all.

I hope this helps


I found mine at

~/apache-tomcat-7.0.25/logs/catalina.out


Try using this:

sudo tail -f /opt/tomcat/logs/catalina.out


It works for me on Ubuntu...
cd var/lib/tomcat7
sudo nano logs/catalina.out


I have used this command to check the logs and 10000 is used to show the number of lines

sudo tail  -10000f catalina.out


Just logged in to the server and type below command

locate catalina.out

It will show all the locations where catalina file exist within this server.


Just be aware also that catalina.out can be renamed - it can be set in /bin/catalina.sh with the CATALINA_OUT environment variable.


If you are in the home directory first move to apache tomcat use below command

cd apache-tomcat/

then move to logs

cd logs/

then open the catelina.out use the below command

tail -f catalina.out


If you type in the command line

catalina

you will see some message about it, look for this:

CATALINA_BASE: /usr/local/Cellar/tomcat/9.0.27/libexec

cd /usr/local/Cellar/tomcat/9.0.27/libexec/logs
tail -f catalina.out

You will then see the live logs.

NOTE: My Tomcat installation was done via Homebrew


I found logs of Apache Tomcat/9.0.33 version in below path:

In tail -f /opt/tomcat/logs/catalina.out

Thanks.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜