参考链接 https://pkg.jenkins.io/debian-stable/
其中这一步因为网络原因失败
apt-get install jenkins
在清华源上下载了deb包,直接安装。
root@myang-computer:~# dpkg -i jenkins_2.440.1_all.deb Selecting previously unselected package jenkins. (Reading database ... 123726 files and directories currently installed.) Preparing to unpack jenkins_2.440.1_all.deb ... Unpacking jenkins (2.440.1) ... Setting up jenkins (2.440.1) ... Processing triggers for systemd (245.4-4ubuntu3.22) ...
验证成功
root@myang-computer:~# service jenkins status ● jenkins.service - Jenkins Continuous Integration Server Loaded: loaded (/lib/systemd/system/jenkins.service; enabled; vendor preset: enabled) Active: active (running) since Sat 2024-03-09 06:55:14 UTC; 59s ago Main PID: 7012 (java) Tasks: 50 (limit: 4557) Memory: 286.5M CGroup: /system.slice/jenkins.service └─7012 /usr/bin/java -Djava.awt.headless=true -jar /usr/share/java/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=8080
标签:...,java,service,2.440,ubuntu,jenkins,deb,安装 From: https://www.cnblogs.com/xiangyu5945/p/18062736