Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How to stop Tomcat server in ubuntu

Usually in any Operating system, default programs and processes start to run in the startup or after some event. In windows we can easily remove those programs using Windows Task Manager ( just press CTR +ALT + DEL and select the program you want to terminate and click “End Task” button). But in Linux environment it is not that easy. Today I came across a scenario where I want to release the default port (8080 ) from the Tomcat Server in Ubuntu 16.04 desktop environment. I found this solution useful to stop any Java process in Ubuntu. You just have to follow the two basic steps below.

Step 1: Copy and paste or enter the following code segment in Ubuntu terminal( CTR + ALT + T )

ps ax | grep java

This will show all the Java processes that are currently running along with their process ID as a list.
Remember or note down the Process ID of the process you want to remove.

Step 2: Enter the below code segment and replace the [pid] with the Process ID of the desired process. Then Hit enter.

sudo kill -9 [pid]

That process will be terminated with no problem.

Thank you




This post first appeared on Never Stop Coding, please read the originial post: here

Share the post

How to stop Tomcat server in ubuntu

×

Subscribe to Never Stop Coding

Get updates delivered right to your inbox!

Thank you for your subscription

×