Jenkins使用[一]
Posted Itdeer
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Jenkins使用[一]相关的知识,希望对你有一定的参考价值。
安装经常使用的工具
yum install wget vim lsof -y
JDK安装配置
请参考 JDK在Linux下的安装配置:
https://note.youdao.com/share/?id=7383d76f34f1c697ebedbf8a6450d969&type=notebook#/WEBe460749d3a6c81d4b4dd36c3151e3893
关闭防火墙
systemctl stop firewalld
systemctl disable firewalld
systemctl status firewalld
下载Jenkins
若上一步按照文档所写做的,/opt/目录下会有install目录
mkdir -p /opt/install/jenkins
cd /opt/install/jenkins
wget http://192.168.0.220/source/jenkins/2.89.2/jenkins.war
启动服务
java -jar jenkins.war --httpPort=8888
查询输出日志
Jenkins initial setup is required. An admin user has been created and a password generated.
Please use the following password to proceed to installation:
0915b524ea8d47269375df695f229711
This may also be found at: /root/.jenkins/secrets/initialAdminPassword
*************************************************************
*************************************************************
*************************************************************
查询到初始密码文件是
/root/.jenkins/secrets/initialAdminPassword
结束当前进程 Ctrl + c
cat /root/.jenkins/secrets/initialAdminPassword
0915b524ea8d47269375df695f229711
后台启动
nohup java -jar jenkins.war --httpPort=8888 &
浏览器访问 http://IP:8888
登录
用户名:admin
密码:0915b524ea8d47269375df695f229711
更改密码:
以上是关于Jenkins使用[一]的主要内容,如果未能解决你的问题,请参考以下文章