Change the title of the Tomcat command line window

Source: Internet
Author: User

When multiple Tomcat servers are started in Windows, it is difficult to distinguish which Tomcat corresponds to which service. You can set the title of the Tomcat command line window using the following methods:
1. Find the following in % tomcat_home % \ bin \ Catalina. BAT:Code:
Search for "notitle" or "_ execjava"
Find:
: Dostart
Shift
If not "% OS %" = "windows_nt" Goto notitle
Set _ execjava = start "Tomcat" % _ runjava %
Goto gottitle
Replace the Tomcat character in the following line with the corresponding title.
Set _ execjava = start "Tomcat" % _ runjava %

Versions later than tomcat6.0.29 are as follows:
: Dostart
Shift
If not "% OS %" = "windows_nt" Goto notitle
If "% title %" = "" set Title = Tomcat
Set _ execjava = start "% title %" % _ runjava %
Goto gottitle
Similarly
If "% title %" = "" set Title = Tomcat
Changed:
If "% title %" = "" set Title = your application service name

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.