netstat -nap |grep :8009|grep CLOSE_WAIT | awk '{print $7}'|awk -F"\/" '{print $1}' |awk '!a[$1]++' |xargs kill
explain:
List all ports using the netstat information, including process information,
Filtered port 8009,
CLOSE_WAIT filtered out of state,
The first seven to take the results of that process information, the format is such that 12568 / httpd,
So to get rid of / httpd this part, leaving only the process ID,
Then repeat the process of removing the numbers,
Finally xargs into the kill command to kill the corresponding process.