使用tar包的方式先安裝jdk
啟動指令碼
cat start.sh
nohup /usr/local/jdk-17.0.11/bin/java -Djava.awt.headless=true -DJENKINS_HOME=/home/jenkins/jenkins_data -jar jenkins.war --httpPort=9000 >> nohup.log &
使用tar包的方式先安裝jdk
啟動指令碼
cat start.sh
nohup /usr/local/jdk-17.0.11/bin/java -Djava.awt.headless=true -DJENKINS_HOME=/home/jenkins/jenkins_data -jar jenkins.war --httpPort=9000 >> nohup.log &