1
2
3
4
> wmic process where "caption = 'java.exe' and commandline like '%server-1.properties%'" get processid
ProcessId
6016
> taskkill /pid 6016 /f
## check and kill used "ports"
netstat -ano | findstr :8080
taskkill /PID <yourid> /F
taskkill /F /PID pid_number
kill SIGNAL PID
#Example
kill -9 3827
#See more information from : https://www.linux.com/training-tutorials/how-kill-process-command-line/
> wmic process where "caption = 'java.exe' and commandline like '%server-1.properties%'" get processid
ProcessId
6016
> taskkill /pid 6016 /f
kill task by pid