[Osx]Brew+Jenkins安装教程

2020/10 19 20:10
// 1.安装brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

// 2.安装Jenkins
brew install jenkins

// 3.Jenkins开放外网访问:
vi /Users/admin/Library/LaunchAgents/homebrew.mxcl.jenkins.plist
将127.0.0.1 修改为0.0.0.0

// 4.启动 Jenkins
brew services start jenkins
brew services stop jenkins

// 5.忘了密码怎么办?
vi /Users/username/.jenkins/users/admin/config.xml
把
<hudson.security.HudsonPrivateSecurityRealm_-Details>
<passwordHash>#jbcrypt:$2a$10$MiIVR0rr/UhQBqT.bBq0QehTiQVqgNpUGyWW2nJObaVAM/2xSQdSq</passwordHash>
</hudson.security.HudsonPrivateSecurityRealm_-Details>
替换掉原来的,就为123456了

// 6.Jenkins执行时,报命令command not found怎么办?在shell之前执行
source /etc/profile 

--转载请注明: http://blog.coolcoding.cn/?p=2784