Jenkins安装
2018-03-23 本文已影响0人
袁先生的笔记
环境
系统:CentOS 6.9
软件:jenkins.war
准备
安装启动
-
下载包war包
地址:https://jenkins.io/download/ -
安装
# mkdir /usr/local/jenkins # mv jenkins.war /usr/local/jenkins/
-
配置环境变量
# vim /etc/profile export JENKINS_ROOT=/usr/local/jenkins export JENKINS_HOME=$JENKINS_ROOT/jenkins_home # source /etc/profile
-
启动
# nohup java -jar /usr/local/jenkins/jenkins.war --httpPort=80 >> /usr/local/jenkins/jenkins.log 2>&1 &
-
开机启动
# vim /etc/rc.local source /etc/profile nohup java -jar /usr/local/jenkins/jenkins.war --httpPort=80 >> /usr/local/jenkins/jenkins.log 2>&1 &
登录
- 使用浏览器访问web
地址:http://ip