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
kill -9 3827
kill -9 PID # kill -9 94228
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/
kill -9 1234
//where 1234 is process ID and -9 is an option to send a KILL singal
> wmic process where "caption = 'java.exe' and commandline like '%server-1.properties%'" get processid
ProcessId
6016
> taskkill /pid 6016 /f
kill task by pid