内容简介:3、修改jenkins家目录位置默认是/var/lib/jenkins,修改后启动服务,如果之前启动过,这边重启服务会重新安装插件等到新目录
参考文档
https://wiki.jenkins.io/display/JENKINS/Installing+Jenkins+on+Red+Hat+distributions https://wiki.jenkins.io/display/JENKINS/LDAP+Plugin
一、部署jenkins
1、设置jenkins家目录环境
[root@VM_8_24_centos ~]# yum -y install java [root@VM_8_24_centos builds]# java -version java version "1.8.0_171" Java(TM) SE Runtime Environment (build 1.8.0_171-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)
2、安装jenkins
[root@VM_8_24_centos ~]# wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo [root@VM_8_24_centos ~]# rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key [root@VM_8_24_centos ~]# yum -y install jenkins Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile Resolving Dependencies --> Running transaction check ---> Package jenkins.noarch 0:2.150.2-1.1 will be installed --> Finished Dependency Resolution Installed: jenkins.noarch 0:2.150.2-1.1 Complete!
3、修改jenkins家目录位置
默认是/var/lib/jenkins,修改后启动服务,如果之前启动过,这边重启服务会重新安装插件等到新目录
[root@VM_8_24_centos ~]# mkdir /data1/jenkins/ [root@VM_8_24_centos ~]# chown jenkins:jenkins /data1/jenkins/ [root@VM_8_24_centos ~]# source /etc/profile [root@VM_8_24_centos ~]# echo $JENKINS_HOME /data1/jenkins [root@VM_8_24_centos ~]# grep JENKINS_HOME /etc/sysconfig/jenkins JENKINS_HOME="/data1/jenkins" # permissions of $JENKINS_HOME and /var/log/jenkins. # $JENKINS_HOME location. Do not enable this, "true", unless
4、启动jenkins服务
[root@VM_8_24_centos ~]# systemctl start jenkins [root@VM_8_24_centos ~]# systemctl status jenkins ● jenkins.service - LSB: Jenkins Automation Server Loaded: loaded (/etc/rc.d/init.d/jenkins; bad; vendor preset: disabled) Active: active (running) since Thu 2019-01-17 10:54:27 CST; 6s ago Docs: man:systemd-sysv-generator(8) Process: 14935 ExecStart=/etc/rc.d/init.d/jenkins start (code=exited, status=0/SUCCESS) Memory: 391.4M CGroup: /system.slice/jenkins.service └─14960 /usr/bin/java -Dcom.sun.akuma.Daemon=daemonized -Djava.awt.headless=true -DJENKINS_HOME=/var/lib/jenkins -jar /... [root@VM_8_24_centos ~]# cat /data1/jenkins/secrets/initialAdminPassword 96a4e031a951464690c093c918410793 [root@VM_8_24_centos ~]# ls /data1/jenkins/ config.xml jenkins.install.UpgradeWizard.state nodeMonitors.xml secret.key.not-so-secret users hudson.model.UpdateCenter.xml jenkins.telemetry.Correlator.xml nodes secrets identity.key.enc jobs plugins updates jenkins.CLI.xml logs secret.key userContent
二、初始化jenkins环境
1、浏览器打开ip:8080端口输入密码
2、选择安装插件
3、创建初始管理账号
4、设置jenkins url默认http://ip:8080
5、开始使用jenkins
6、jenkins控制台界面,主要配置都在系统管理中
三、配置ldap
1、系统配置-全局安全配置-Security Realm-选择LDAP-Advanced Service Configtion
2、Security Realm-Authorization-Add user or group设置权限
3、域账号登陆
以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网
猜你喜欢:- git部署及常用配置
- Consul 集群部署 + ACL 配置
- SLife 1.0 加入集群的配置和 Docker 化部署配置
- Spring Boot打包部署和环境配置
- WEB平台DJANGO&VUE配置部署生产环境
- Open-Falcon安装部署配置说明文档
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Distributed Systems
Sukumar Ghosh / Chapman and Hall/CRC / 2014-7-14 / USD 119.95
Distributed Systems: An Algorithmic Approach, Second Edition provides a balanced and straightforward treatment of the underlying theory and practical applications of distributed computing. As in the p......一起来看看 《Distributed Systems》 这本书的介绍吧!
随机密码生成器
多种字符组合密码
html转js在线工具
html转js在线工具