If you know what port the process is running you can type:
lsof -i:<port>
.
For instance, lsof -i:8080
, to list the process (pid) running on port 8080.
Then kill the process with kill <pid>
More Related Contents:
- Is there an easy way to attach source in Eclipse?
- Seeking useful Eclipse Java code templates [closed]
- Should I keep my project files under version control? [closed]
- Conversion to Dalvik format failed: Unable to execute dex: Java heap space
- How to check if internet connection is present in Java?
- Running multiple launch configurations at once
- Eclipse is confused by imports (“accessible from more than one module”)
- “Error occurred during initialization of VM; Could not reserve enough space for object heap” using -Xmx3G
- java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter when starting Simple Struts2 Application
- Java — Closing Scanner and Resource Leak
- How to find an available port?
- How do relative file paths work in Eclipse?
- ERROR: JDWP Unable to get JNI 1.2 environment
- Error scanning entry “module-info.class” when starting Jetty server
- Paste a multi-line Java String in Eclipse [duplicate]
- Installing Checkstyle-Plugin (7.2.0) for Eclipse Neon fails
- Error “A JNI error has occurred. Please check your installation and try again in Eclipse x86 Windows 8.1”
- Adding 3rd party jars to WEB-INF/lib automatically using Eclipse/Tomcat
- Class JavaLaunchHelper is implemented in both. One of the two will be used. Which one is undefined [duplicate]
- Eclipse tabs are broken how to fix it? [closed]
- How to get shutdown hook to execute on a process launched from Eclipse
- Eclipse: change name of existing package with classes inside
- How can I add JAR files to the web-inf/lib folder in Eclipse?
- Java Decompiler [closed]
- problems with java3D lib configuration
- java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet error
- What project files does Visual Studio Code create via its Java extensions?
- VariableDeclarationFragment node resolveBindind() returns null in eclipse/jdt/ast
- How to insert a document with date in mongo?
- Eclipse classpath entries only used for tests