ps -ef | grep Productor.py | grep -v grep
# 先测试好
python3 /usr/local/software/ELK/Productor.py
# 没问题了放入后台执行
nohup python3 -u /usr/local/software/ELK/Productor.py > /usr/local/software/ELK/Productor.nohup.out 2>&1 &
# 先测试好
python3 -u /usr/local/software/ELK/Consumer.py
# 没问题了放入后台执行
nohup python3 -u /usr/local/software/ELK/Consumer.py > /usr/local/software/ELK/Consumer.nohup.out 2>&1 &