arguments must be process or job IDs
[root@localhost ansible]# cat filebeat_stop.sh
#!/bin/bash
pid=`ps -ef|grep filebeat|grep "\./filebeat"|grep "filebeat.yml"|awk '{print $2}'`
echo $pid
kill -9 $pid
[root@localhost ansible]# sh filebe...
原创
2019-12-10 11:02:03 ·
8035 阅读 ·
0 评论