Jenkins - macOS 上安装

文章目录

    • [关于 Jenkins](#关于 Jenkins)
      • [macOS 上安装 Jenkins](#macOS 上安装 Jenkins)
      • 方式一:brew
      • [方式二:tomcat + Jenkins war](#方式二:tomcat + Jenkins war)

关于 Jenkins

官网上下载Jenkins并将其安装到持续集成服务器

https://jenkins.io/download/


macOS 上安装 Jenkins

现在本 macOS 上测试
https://www.jenkins.io/download/lts/macos/


方式一:brew

shell 复制代码
# Install the latest LTS version: 
brew install jenkins-lts

# Install a specific LTS version: 
brew install jenkins-lts@YOUR_VERSION

# Start the Jenkins service: 
brew services start jenkins-lts

# Restart the Jenkins service: 
brew services restart jenkins-lts

# Update the Jenkins version: 
brew upgrade jenkins-lts

方式二:tomcat + Jenkins war

1、下载 tomcat
https://tomcat.apache.org


这里我下载 Tomcat10, binary distributions 中的 Core zip


2、启动 tomcat

将压缩文件解压到:/Users/shushu/software/apache-tomcat-10.0.18

shell 复制代码
$ cd /Users/shushu/software/apache-tomcat-10.0.18

$ sudo sh startup.sh 
Using CATALINA_BASE:   /Users/shushu/software/apache-tomcat-10.0.18
Using CATALINA_HOME:   /Users/shushu/software/apache-tomcat-10.0.18
Using CATALINA_TMPDIR: /Users/shushu/software/apache-tomcat-10.0.18/temp
Using JRE_HOME:        /Library/Java/JavaVirtualMachines/jdk-11.0.10.jdk/Contents/Home
Using CLASSPATH:       /Users/shushu/software/apache-tomcat-10.0.18/bin/bootstrap.jar:/Users/shushu/software/apache-tomcat-10.0.18/bin/tomcat-juli.jar
Using CATALINA_OPTS:   
Tomcat started.

浏览器中输入 http://localhost:8080 ,如下代表启动成功


关闭tomcat服务命令

shell 复制代码
$ sh shutdown.sh

如果报一下错误

shell 复制代码
Cannot find ./catalina.sh
The file is absent or does not have execute permission
This file is needed to run this program

原因是权限不够,对这个文件夹的sh文件 赋予权限即可。

shell 复制代码
$ chmod 777 *.sh

3、下载 Jenkins war 包
https://www.jenkins.io/download/


相关推荐
pe7er7 小时前
macOS 应用无法打开(权限问题)解决方案
macos·mac
蝎子莱莱爱打怪2 天前
Centos7中一键安装K8s集群以及Rancher安装记录
运维·后端·kubernetes
DianSan_ERP2 天前
电商API接口全链路监控:构建坚不可摧的线上运维防线
大数据·运维·网络·人工智能·git·servlet
呉師傅3 天前
火狐浏览器报错配置文件缺失如何解决#操作技巧#
运维·网络·windows·电脑
不是二师兄的八戒3 天前
Linux服务器挂载OSS存储的完整实践指南
linux·运维·服务器
zhangfeng11333 天前
趋动云 如何ssh登录 服务区 项目server
运维·人工智能·ssh
ZeroNews内网穿透3 天前
谷歌封杀OpenClaw背后:本地部署或是出路
运维·服务器·数据库·安全
失重外太空啦3 天前
nginx
运维·nginx
Gofarlic_oms13 天前
避免Kisssoft高级分析模块过度采购的科学评估方法
大数据·linux·运维·人工智能·matlab
田井中律.3 天前
服务器部署问题汇总(ubuntu24.04.3)
运维·服务器