jenkins的安装部署
jenkins安装
参考连接:
https://wiki.jenkins.io/display/JENKINS/Installing+Jenkins+on+Red+Hat+distributions
1下载镜像源
wget -O
/etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo
2安装镜像源
rpm —import https://jenkins-ci.org/redhat/jenkins-ci.org.key
3安装jenkins
yum install jenkins
4修改配置文件
vim /etc/sysconfig/jenkins
如下:
[root@cmdb-server wiki]# grep -Ev “^$|^[#;]” /etc/sysconfig/jenkins
JENKINS_HOME=”/var/lib/jenkins”
JENKINS_JAVA_CMD=””
JENKINS_USER=”jenkins”
JENKINS_JAVA_OPTIONS=”-Djava.awt.headless=true”
JENKINS_PORT=”9090”
JENKINS_LISTEN_ADDRESS=””
JENKINS_HTTPS_PORT=””
JENKINS_HTTPS_KEYSTORE=””
JENKINS_HTTPS_KEYSTORE_PASSWORD=””
JENKINS_HTTPS_LISTEN_ADDRESS=””
JENKINS_DEBUG_LEVEL=”5”
JENKINS_ENABLE_ACCESS_LOG=”no”
JENKINS_HANDLER_MAX=”100”
JENKINS_HANDLER_IDLE=”20”
JENKINS_ARGS=””
5启动jenkins
systemctl restart jenkins
6查看安装密码
cat /var/lib/jenkins/secrets/initialAdminPassword
7jenkins页面下一步点击操作,完成