1 Star 0 Fork 496

feyong / JSite

forked from JSite / JSite 
Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
shutdown.sh 259 Bytes
Copy Edit Web IDE Raw Blame History
#! /bin/bash
port=$1
echo $port
#根据端口号查询对应的pid
pid=$(netstat -nlp | grep :$port | awk '{print $7}' | awk -F"/" '{ print $1 }');
#杀掉对应的进程,如果pid不存在,则不执行
if [ -n "$pid" ]; then
kill -9 $pid;
fi

Comment ( 0 )

Sign in for post a comment

Java
1
https://gitee.com/feyong/JSite.git
git@gitee.com:feyong/JSite.git
feyong
JSite
JSite
master

Search

102255 3a0e046c 1850385 102255 7aaa926c 1850385