Created
June 16, 2018 06:27
-
-
Save melice/46b94734a63876daee2bbb2648e48a08 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
centos下安装 jenkins | |
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat/jenkins.repo | |
sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key | |
yum install jenkins | |
/usr/lib/jenkins/jenkins.war WAR包 | |
/etc/sysconfig/jenkins 配置文件 | |
/var/lib/jenkins/ 默认的JENKINS_HOME目录 | |
/var/log/jenkins/jenkins.log Jenkins日志文件 | |
启动 service jenkins start | |
重启 service jenkins restart | |
配置二级目录 | |
1. /etc/sysconfig/jenkins | |
配置 JENKINS_ARGS=" --prefix=/jenkins" | |
2. nginx 反代配置 | |
参考: | |
http://pkg.jenkins-ci.org/redhat/ | |
https://www.cnblogs.com/qixing/p/5896512.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment