stop_dnodes.sh 395 字节
Newer Older
S
slguan 已提交
1 2 3 4 5 6 7 8
#!/bin/sh

PID=`ps -ef|grep /usr/bin/taosd | grep -v grep | awk '{print $2}'`
if [ -n "$PID" ]; then 
	echo sudo systemctl stop taosd 
	sudo systemctl stop taosd
fi
  
9
PID=`ps -ef|grep -w taosd | grep -v grep | awk '{print $2}'`
10
while [ -n "$PID" ]; do
S
slguan 已提交
11
	echo sudo kill -9 $PID 
12 13 14 15
	sudo pkill -9 taosd
  sudo fuser -k -n tcp 6030
  PID=`ps -ef|grep -w taosd | grep -v grep | awk '{print $2}'`
done