jenkins安装(1)
1先在互聯(lián)網(wǎng)上輸入jenkins.io
2下載jenkins.war
3上傳到服務器上
安裝jdk前面的博客已經(jīng)說過了
4 Jenkins requires Java versions [8, 11] but you are running with Java 1.7 from /usr/java/jdk1.7.0_06/jre
java.lang.UnsupportedClassVersionError: 51.0
at Main.verifyJavaVersion(Main.java:182)
at Main.main(Main.java:142)
報錯,版本太低
5AWT is not properly configured on this server. Perhaps you need to run your container with “-Djava.awt.headless=true”? See also: https://jenkins.io/redirect/troubleshooting/java.awt.headless
報錯,據(jù)說視版本問題
進入網(wǎng)址沒能正確解決
5sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
sudo yum install jenkins
安裝
啟動報錯
Restarting jenkins (via systemctl): Job for jenkins.service failed because the control process exited with error code. See “systemctl status jenkins.service” and “journalctl -xe” for details
修改etc/init.d/jenkins文件加入
Candidates文件下加入
/usr/java/java-se-8u40-ri/bin/java
解決
AWT is not properly configured on this server. Perhaps you need to run your container with “-Djava.awt.headless=true”? See also: https://jenkins.io/redirect/troubleshooting/java.awt.headless
還是報錯
6繼續(xù)測試
wget http://pkg.jenkins-ci.org/redhat-stable/jenkins-2.7.3-1.1.noarch.rpm
rpm -ivh jenkins-2.7.3-1.1.noarch.rpm
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
sudo yum install Jenkins
service jenkins restart啟動,換了臺服務器成功。
總結(jié)
以上是生活随笔為你收集整理的jenkins安装(1)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: java 异常 过滤器_在过滤器Filt
- 下一篇: 变压器油参数