Jenkins

安装Jenkins
1.yum安装
wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
yum install jenkins
启动
service jenkins start
停止
service jenkins stop
重启
service jenkins restart

修改Java环境变量地址
echo $JAVA_HOME
find / -name jenkins*
vim /etc/rc.d/init.d/jenkins

修改端口
vi /etc/sysconfig/jenkins
service jenkins start

http://47.107.253.153:9902

第一次访问Jenkins需要解锁,在Linux中输入cat /var/lib/jenkins/secrets/initialAdminPassword获取密码
创建用户名/密码

root/root

2.war包安装
https://jenkins.io/download/下载war包
nohup java -jar jenkins.war --httpPort=8899 &

 

posted on 2019-09-26 15:42  lc19149  阅读(123)  评论(0编辑  收藏  举报

导航