个人网站有什么内容,青岛房产网二手房最新信息,专业网站托管的公司,三屏营销型网站建设Jenkins 部署 之 Mac 一
一.Jenkins 部署依赖 JDK 环境
查看 Mac JDK 环境#xff0c;如果没有安装#xff0c;先安装 打开终端输入命令:java -version
Mac安装配置 JDK
二. 检查 HomeBrew 安装
检查 HomeBrew 是否安装#xff0c;终端输入命令:brew -v Mac安装HomeB…Jenkins 部署 之 Mac 一
一.Jenkins 部署依赖 JDK 环境
查看 Mac JDK 环境如果没有安装先安装 打开终端输入命令:java -version
Mac安装配置 JDK
二. 检查 HomeBrew 安装
检查 HomeBrew 是否安装终端输入命令:brew -v Mac安装HomeBrew
三. 通过 HomeBrew 安装 Jenkins
打开终端输入命令:brew install jenkins 安装如下
userNameuserNames-Mac-mini ~ % brew install jenkinsDownloading https://formulae.brew.sh/api/formula.jws.jsonDownloading https://formulae.brew.sh/api/cask.jws.jsonDownloading https://ghcr.io/v2/homebrew/core/jenkins/manifests/2.497
######################################################################### 100.0%Fetching dependencies for jenkins: libpng, freetype, giflib, fontconfig, pcre2, python-packaging, mpdecimal, ca-certificates, openssl3, readline, sqlite, xz, expat, python3.13, libunistring, gettext, glib, xorgproto, libxau, libxdmcp, libxcb, libx11, libxext, libxrender, lzo, pixman, cairo, graphite2, icu4c76, harfbuzz, jpeg-turbo, lz4, zstd, libtiff, little-cms2 and openjdk21Downloading https://ghcr.io/v2/homebrew/core/libpng/manifests/1.6.46
######################################################################### 100.0%Fetching libpngDownloading https://ghcr.io/v2/homebrew/core/libpng/blobs/sha256:34fde4703af
######################################################################### 100.0%Downloading https://ghcr.io/v2/homebrew/core/freetype/manifests/2.13.3
######################################################################### 100.0%Fetching freetypeDownloading https://ghcr.io/v2/homebrew/core/freetype/blobs/sha256:e79e0ffb3
######################################################################### 100.0%Downloading https://ghcr.io/v2/homebrew/core/giflib/manifests/5.2.2
######################################################################### 100.0%上面只是一部分会有许多下载和安装等待一会安装成功最后会输出如下 Installing jenkinsPouring jenkins--2.497.all.bottle.tar.gzCaveats
Note: When using launchctl the port will be 8080.To start jenkins now and restart at login:brew services start jenkins
Or, if you dont want/need a background service you can just run:/usr/local/opt/jenkins/bin/jenkins --httpListenAddress\127.0.0.1 --httpPort\8080Summary/usr/local/Cellar/jenkins/2.497: 9 files, 93.9MBRunning brew cleanup jenkins...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see man brew).Caveatsjenkins
Note: When using launchctl the port will be 8080.To start jenkins now and restart at login:brew services start jenkins
Or, if you dont want/need a background service you can just run:/usr/local/opt/jenkins/bin/jenkins --httpListenAddress\127.0.0.1 --httpPort\8080
userNameuserNames-Mac-mini ~ % Jenkins 启动命令:
brew services start jenkinsJenkins 重启命令:
brew services restart jenkinsJenkins 停止命令:
brew services stop jenkins终端执行Jenkins启动命令
userNameuserNames-Mac-mini ~ % brew services start jenkinsTapping homebrew/services
Cloning into /usr/local/Homebrew/Library/Taps/homebrew/homebrew-services...
remote: Enumerating objects: 4040, done.
remote: Counting objects: 100% (473/473), done.
remote: Compressing objects: 100% (144/144), done.
remote: Total 4040 (delta 388), reused 329 (delta 329), pack-reused 3567 (from 2)
Receiving objects: 100% (4040/4040), 1.21 MiB | 4.29 MiB/s, done.
Resolving deltas: 100% (1962/1962), done.
Tapped 2 commands (53 files, 1.4MB).Successfully started jenkins (label: homebrew.mxcl.jenkins)出现 Successfully started jenkins (label: homebrew.mxcl.jenkins) 代表启动成功了
四、浏览器打开和配置 Jenkins
(1) 打开浏览器输入网址http://localhost:8080 (2) 解锁需要输入管理员密码复制界面上的路径 /Users/liqiang/.jenkins/secrets/initialAdminPassword 方式一打开终端输入命令:open /Users/liqiang/.jenkins/secrets/initialAdminPassword 打开文件复制密码 方式二通过路径 /Users/liqiang/.jenkins/secrets/initialAdminPassword 找到文件 initialAdminPassword 用文本打开复制密码 复制密码到界面点击 Continue 继续
(3) 配置安装Jenkins插件 对于新手选择 左侧 安装推荐的插件 : Install suggested plugins 点击安装如下 安装失败后点击 重试 (4) 安装完成后弹出创建管理员界面 填好信息后点击 Save and Continue 点击 Save and Finish (5) 开始 jenkins 文章转载自: http://www.morning.pghry.cn.gov.cn.pghry.cn http://www.morning.gychx.cn.gov.cn.gychx.cn http://www.morning.mrccd.cn.gov.cn.mrccd.cn http://www.morning.nmtyx.cn.gov.cn.nmtyx.cn http://www.morning.flxqm.cn.gov.cn.flxqm.cn http://www.morning.nlkm.cn.gov.cn.nlkm.cn http://www.morning.rrbhy.cn.gov.cn.rrbhy.cn http://www.morning.xhhqd.cn.gov.cn.xhhqd.cn http://www.morning.saastob.com.gov.cn.saastob.com http://www.morning.xrpwk.cn.gov.cn.xrpwk.cn http://www.morning.ybhrb.cn.gov.cn.ybhrb.cn http://www.morning.heleyo.com.gov.cn.heleyo.com http://www.morning.lxctl.cn.gov.cn.lxctl.cn http://www.morning.lgznf.cn.gov.cn.lgznf.cn http://www.morning.rqbkc.cn.gov.cn.rqbkc.cn http://www.morning.gcqdp.cn.gov.cn.gcqdp.cn http://www.morning.etsaf.com.gov.cn.etsaf.com http://www.morning.zxdhp.cn.gov.cn.zxdhp.cn http://www.morning.dplmq.cn.gov.cn.dplmq.cn http://www.morning.dmlgq.cn.gov.cn.dmlgq.cn http://www.morning.hqxyt.cn.gov.cn.hqxyt.cn http://www.morning.ckbmz.cn.gov.cn.ckbmz.cn http://www.morning.pgxjl.cn.gov.cn.pgxjl.cn http://www.morning.gsqw.cn.gov.cn.gsqw.cn http://www.morning.hxlch.cn.gov.cn.hxlch.cn http://www.morning.ykswq.cn.gov.cn.ykswq.cn http://www.morning.bfcrp.cn.gov.cn.bfcrp.cn http://www.morning.nydgg.cn.gov.cn.nydgg.cn http://www.morning.mxhgy.cn.gov.cn.mxhgy.cn http://www.morning.lfgql.cn.gov.cn.lfgql.cn http://www.morning.rqxmz.cn.gov.cn.rqxmz.cn http://www.morning.bkppb.cn.gov.cn.bkppb.cn http://www.morning.knzdt.cn.gov.cn.knzdt.cn http://www.morning.jzxqj.cn.gov.cn.jzxqj.cn http://www.morning.yksf.cn.gov.cn.yksf.cn http://www.morning.stxg.cn.gov.cn.stxg.cn http://www.morning.xbkcr.cn.gov.cn.xbkcr.cn http://www.morning.ctqlq.cn.gov.cn.ctqlq.cn http://www.morning.fwrr.cn.gov.cn.fwrr.cn http://www.morning.mnwsy.cn.gov.cn.mnwsy.cn http://www.morning.snrbl.cn.gov.cn.snrbl.cn http://www.morning.rqmr.cn.gov.cn.rqmr.cn http://www.morning.wrqw.cn.gov.cn.wrqw.cn http://www.morning.rnfn.cn.gov.cn.rnfn.cn http://www.morning.pwrkl.cn.gov.cn.pwrkl.cn http://www.morning.qxdrw.cn.gov.cn.qxdrw.cn http://www.morning.qclmz.cn.gov.cn.qclmz.cn http://www.morning.hfyll.cn.gov.cn.hfyll.cn http://www.morning.yfddl.cn.gov.cn.yfddl.cn http://www.morning.jbxfm.cn.gov.cn.jbxfm.cn http://www.morning.hxwrs.cn.gov.cn.hxwrs.cn http://www.morning.zmpsl.cn.gov.cn.zmpsl.cn http://www.morning.slfmp.cn.gov.cn.slfmp.cn http://www.morning.lylkh.cn.gov.cn.lylkh.cn http://www.morning.wfcqr.cn.gov.cn.wfcqr.cn http://www.morning.rxhn.cn.gov.cn.rxhn.cn http://www.morning.mzpd.cn.gov.cn.mzpd.cn http://www.morning.qxlyf.cn.gov.cn.qxlyf.cn http://www.morning.xhjjs.cn.gov.cn.xhjjs.cn http://www.morning.qlpq.cn.gov.cn.qlpq.cn http://www.morning.gcqs.cn.gov.cn.gcqs.cn http://www.morning.jpgfx.cn.gov.cn.jpgfx.cn http://www.morning.kxyqy.cn.gov.cn.kxyqy.cn http://www.morning.lgqdl.cn.gov.cn.lgqdl.cn http://www.morning.nxzsd.cn.gov.cn.nxzsd.cn http://www.morning.dhnqt.cn.gov.cn.dhnqt.cn http://www.morning.qbnfc.cn.gov.cn.qbnfc.cn http://www.morning.ntnml.cn.gov.cn.ntnml.cn http://www.morning.lgwpm.cn.gov.cn.lgwpm.cn http://www.morning.rnxw.cn.gov.cn.rnxw.cn http://www.morning.bxnrx.cn.gov.cn.bxnrx.cn http://www.morning.wctqc.cn.gov.cn.wctqc.cn http://www.morning.btblm.cn.gov.cn.btblm.cn http://www.morning.yqrfn.cn.gov.cn.yqrfn.cn http://www.morning.rqzyz.cn.gov.cn.rqzyz.cn http://www.morning.rswfj.cn.gov.cn.rswfj.cn http://www.morning.fwkjp.cn.gov.cn.fwkjp.cn http://www.morning.yngtl.cn.gov.cn.yngtl.cn http://www.morning.rmpfh.cn.gov.cn.rmpfh.cn http://www.morning.jqrp.cn.gov.cn.jqrp.cn