port=9996netstat -anp | grep $port | head -1 | awk '{print $7}'| awk 'BEGIN{FS="/"} {print $1}' | xargs kill -9#该片段来自于http://www.codesnippet.cn/detail/211020136542.html
来源: http://www.codesnippet.cn/detail/211020136542.html