1,配置YUM源
https://blog.csdn.net/h8178/article/details/79066540
2,登录root安装
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key sudo yum upgrade sudo yum install jenkins java-1.8.0-openjdk-devel sudo systemctl daemon-reload
启动Jenkins:
sudo systemctl start jenkins
检查状态:
sudo systemctl status jenkins
正常输出:
Loaded: loaded (/etc/rc.d/init.d/jenkins; generated) Active: active (running) since Tue 2018-11-13 16:19:01 +03; 4min 57s ago ...
配置文件:
/etc/sysconfig/jenkins
日志输出:
/var/log/jenkins
3,初始化:localhost或者IP
http://localhost:8080
获取密码输入
cat /var/lib/jenkins/secrets/initialAdminPassword
然后安装插件,想方便就安装推荐插件,如果失败多重试几次,有依赖关系
安装完成后会出现个页面让你创建admin账号
最后进入页面