转自:https://www.freesion.com/article/6236758080/
#安装 wget https://pkg.jenkins.io/redhat-stable/jenkins-2.204.1-1.1.noarch.rpm rpm -ivh jenkins-2.204.1-1.1.noarch.rpm
目录 | 描述 |
---|---|
/usr/lib/jenkins/jenkins.war | WAR包 |
/etc/sysconfig/jenkins | 配置文件 |
/var/lib/jenkins/ | 默认的JENKINS_HOME目录 |
/var/log/jenkins/jenkins.log | Jenkins日志文件 |
#配置JDK vim /etc/init.d/jenkins #JAVA_HOME /opt/module/jdk1.8.0_171/bin/java
#常用命令 systemctl start/stop/restart jenkins #设置开机自启 chkconfig jenkins on
#原有插件地址 https://updates.jenkins.io/update-center.json #替换为 http://mirror.esuni.jp/jenkins/updates/update-center.json
#JAVA_HOME /opt/module/jdk1.8.0_171
#MAVEN_HOME及settings.xml配置文件目录 /opt/module/apache-maven-3.3.9 /opt/module/apache-maven-3.3.9/conf/settings.xml
#Docker 安装目录 /var/lib/docker