首页
Java
登录
6mi
u
盘
搜
搜 索
Java
服务起在后台的.sh脚本
服务起在后台的.sh脚本
xiaoxiao
2021-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
)