Maxwell启动脚本

#!/bin/bash
case $1 in
        "start" ){
    
    
        /opt/module/maxwell/bin/maxwell --config /opt/module/maxwell/config.properties > /dev/null 2>&1 &
};;
        "stop" ){
    
    
        ps -ef | grep maxwell | grep -v grep |awk '{print $2}' | xargs kill -9
};;
esac

猜你喜欢

转载自blog.csdn.net/qq_43523503/article/details/113584219