2010年2月21日 星期日

kill a process on a specific port

For example, to kill a process on port 9999, first using

"lsof -w -n -i tcp::9999"
or
"fuser -n tcp 9999"

to inspect the process on the port. Then using "kill -9 pid" to eliminate it.