哪里做网站的比较多,游戏推广员拉人犯法吗,公司的网站建设 交给谁做更好些,我的长沙appjenkins打包boot项目 自动重启脚本失败 查看了一下项目日志报错#xff1a;
Error: Unable to access jarfile tlm-admin.jar我检查了一下这个配置#xff0c;感觉没有问题#xff0c;包可以正常打#xff0c; cd 到项目目录下面#xff0c;手动执行这个sh脚本也是能正常…jenkins打包boot项目 自动重启脚本失败 查看了一下项目日志报错
Error: Unable to access jarfile tlm-admin.jar我检查了一下这个配置感觉没有问题包可以正常打 cd 到项目目录下面手动执行这个sh脚本也是能正常启动的 看报错是是找不到这个项目的jar包试了一下 把项目jar的地址改成绝对路径问题得以解决
sh脚本修改前
#!/bin/bash
APP_NAMEtlm-admin.jar
pidps -ef|grep $APP_NAME |grep -v grep | awk {print $2}
if [ $pid ]; thenecho :jar_name old pid is $pidkill -9 $pid
fi
nohup java -jar $APP_NAME /www/wwwroot/TaiLM/log.out 21 sh脚本修改后
#!/bin/bash
APP_NAME/www/wwwroot/TaiLM/tlm-admin.jar
pidps -ef|grep $APP_NAME |grep -v grep | awk {print $2}
if [ $pid ]; thenecho :jar_name old pid is $pidkill -9 $pid
fi
nohup java -jar $APP_NAME /www/wwwroot/TaiLM/log.out 21