kingcos / Perspective

📝 Write something with perspectives.
https://kingcos.me
185 stars 15 forks source link

使用 Homebrew 安装 Jenkins #10

Open kingcos opened 6 years ago

kingcos commented 6 years ago
Platform Notes
macOS 10.13.4 Jenkins 2.114 & Java 8

Solution

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install 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 Oops!

Extension