257 Star 943 Fork 514

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 to post a comment

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

Search

161121 f78d6d6f 1850385 154831 86f8c370 1850385