Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[脚本查找端口并关闭进程] shell 脚本实现 #sh
#!/bin/sh
if [ $(lsof -t -i:6000) ]; then
echo 'stop'
kill -9 $(lsof -t -i:6000) fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.