Jenkamen Jenkamen - 1 year ago 116
Java Question

Mac OS. Apache Tomcat 8. Console window + catalina output + shutdown ctrl+c

I run tomcat like:

exec "/Users/user/apache-tomcat-8.5.4/bin/" start -config /Users/user/tomcat-web-config

but it runs in backgroud.
How to run in new console window and out catalina.out and shutdown by ctrl+c ?


Answer Source

To run tomcat in console you have to you have to use run command not start.

Do exec "/Users/user/apache-tomcat-8.5.4/bin/" run -config /Users/user/tomcat-web-config so the tomcat will run in the console so you can use Ctrl + C to stope the process.


If you use the start command to start tomcat use stop to stop the server.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download