Jenkins中 pipeline后台tomcat启动不起来问题解决办法

在你的启动shell 脚本(即jenkins调用的脚本)加入以下内容:

#!/bin/bash
source /etc/profile
export BUILD_ID=dontkillme
 

TOMCAT_PATH=/data/hkd_server/apache-tomcat-7.0.79

# 启动服务 必须以nohup方式
nohup $TOMCAT_PATH/bin/startup.sh &
 

猜你喜欢

转载自blog.csdn.net/zhldt2008/article/details/83855887