启动:

#! /bin/bash
nohup java -jar ***.jar >/dev/null 2>&1 &

#nohup java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=5005,suspend=n  -jar ***.jar --logging.level.cn.***.***=debug >/dev/null 2>&1 &

 

停止:

#!/bin/bash

pid=`ps -ef | grep java | grep ****.jar | awk '{print $2}'`
kill -9 $pid
echo $pid

相关文章:

  • 2021-05-20
  • 2022-12-23
  • 2022-01-30
  • 2022-12-23
  • 2021-12-07
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-24
  • 2022-12-23
  • 2022-01-13
  • 2021-08-25
  • 2022-12-23
相关资源
相似解决方案