后台启动和关闭jar的shell脚本

1.后台启动 startTest.sh java #设置工程路径 project_path=/root/test cd $project_path #nohup后台启动,输出日志到test.log nohup java -jar test.jar >test.log & #打印日志 tail -f test.log 文件可执行权python chmod +x startTest.shruby 执行
相关文章
相关标签/搜索