Jenkins安装
程序员文章站
2022-05-27 13:33:42
...
环境
系统: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
web端配置Jenkins
上一篇: Docker:Jenkins:修改时区
下一篇: echarts之折线图(line)