Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用 Homebrew 安装 Jenkins #10

Open
kingcos opened this issue May 5, 2018 · 0 comments
Open

使用 Homebrew 安装 Jenkins #10

kingcos opened this issue May 5, 2018 · 0 comments
Assignees
Labels
[Tips] 即提示

Comments

@kingcos
Copy link
Owner

kingcos commented May 5, 2018

Platform Notes
macOS 10.13.4 Jenkins 2.114 & Java 8

Solution

  • 安装 Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • 安装 Jenkins
brew install jenkins
  • 运行 Jenkins
# 当前窗口启动(关闭窗口则关闭 Jenkins)
# $JENKINS_VERSION_CODE 为版本号,$PORT 为 Jenkins Web 页面端口号
# java -jar /usr/local/Cellar/jenkins/$JENKINS_VERSION_CODE/libexec/jenkins.war --httpPort=$PORT
java -jar /usr/local/Cellar/jenkins/$JENKINS_VERSION_CODE/libexec/jenkins.war --httpPort=8080

# 后台启动(关闭窗口无影响)
# $OUTPUT_FILENAME 为终端输出内容存放的文件名
# nohup java -jar /usr/local/Cellar/jenkins/$JENKINS_VERSION_CODE/libexec/jenkins.war >$OUTPUT_FILENAME &
nohup java -jar /usr/local/Cellar/jenkins/2.114/libexec/jenkins.war >temp.txt &

Tips

  • 若出现下图问题,可能是 Jenkins 尚未很好支持 Java 9,请安装 Java 8 后再重装以兼容:

Jenkins Oops!

Extension

@kingcos kingcos self-assigned this May 5, 2018
@kingcos kingcos added the [Tips] 即提示 label May 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Tips] 即提示
Projects
None yet
Development

No branches or pull requests

1 participant