[脚本查找端口并关闭进程] 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
#!/bin/sh | |
if [ $(lsof -t -i:6000) ]; then | |
echo 'stop' | |
kill -9 $(lsof -t -i:6000) fi |