https://jenkins.io/doc/pipeline/
yum install java-1.8.0-openjdk
wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
yum install jenkins
systemctl status jenkins
systemctl start jenkins
systemctl status jenkins
cd /var/log/jenkins
JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.91-0.b14.el7_2.x86_64
yum install java-1.8.0-openjdk
wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
yum install jenkins
jenkins下载较慢
systemctl status jenkins
systemctl start jenkins
systemctl status jenkins
tail -f /var/log/jenkins/jenkins.log
cd /var/lib/jenkins/
cd /var/cache/jenkins/
配置jenkins关于maven与jdk的两个问题
1.需要安装java-1.8.0-openjdk-devel,然后路径
2.像下面这样,然后路径,不能带数字
[root@db apache-maven-3.3.9]# pwd
/root/packages/apache-maven-3.3.9
[root@db apache-maven-3.3.9]# cd ../
[root@db packages]# cp -r apache-maven-3.3.9 /usr/local/maven
jenkins忘记admin密码
目录:/var/lib/jenkins/config.xml
需要删除以下内容:
<useSecurity>true</useSecurity>
<authorizationStategy class="hudson.sucrity.FullControlOnceLoggedInAuthorizationStrategy">
......
</authorizationStategy>
<securityRealm class="hudson.security.HudsonPrivateSecurityRealm">
<disableSignup>false</disableSignup>
..
</securityRealm>
然后重新启动jenkins,
sudo service jenkins restart
就不需要login 看到manage jenkins了。