pid = `ps -ef|grep java|grep -v grep|awk '{print $2}'`
for id in $pid
do
echo "kill -9 pid:" $id
kill -9 $id
done
然后给文件执行授权
chmod 777 文件名
pid = `ps -ef|grep java|grep -v grep|awk '{print $2}'`
for id in $pid
do
echo "kill -9 pid:" $id
kill -9 $id
done
然后给文件执行授权
chmod 777 文件名