-
后台启动:
nohup ./start.sh >> ./output.log 2>&1 &
-
后台启动,进程输出到单独文件:
nohup ./start.sh >> nohuo.log 2&>1 & echo $! pidfile.txt
-
查询进程id:
ps -aux|grep ./rocm.sh
后台启动:nohup ./start.sh >> ./output.log 2>&1 &
后台启动,进程输出到单独文件:nohup ./start.sh >> nohuo.log 2&>1 & echo $! pidfile.txt
查询进程id:ps -aux|grep ./rocm.sh
文章评论