服务起在后台的.sh脚本

xiaoxiao2021-02-28  34

指定端口将服务起在后台

port=9000 pid=`lsof -t -i:$port` if [ $pid ];then kill -9 $pid fi nohup python3 main.py $port & tail -f 100 nohup.out
转载请注明原文地址: https://www.6miu.com/read-2619908.html

最新回复(0)