安装方法所在网址:   https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Ubuntu

在安装jenkins之前,ubutun上需要安装有jdk和jre。建议安装 openjdk-7-jre 和openjdk-7-jdk 版本 。

安装:

wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
sudo apt-get install jenkins


更新:
sudo apt-get update
sudo apt-get install jenkins

安装完成后用浏览器 http://localhost:8080/    就可以打开。

安装完成后将进程拉起:
service jenkins start/stop/restart
出现如下提示:
Starting jenkins (via systemctl):  Job for jenkins.service failed. 
See 'systemctl status jenkins.service' and 'journalctl -xn' for details. [FAILED]
官网提示是因为没有安装java所导致。
官网地址:
https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Red+Hat+distributions
Note: if you get the following error message, ensure that Java has been installed:

Starting jenkins (via systemctl):  Job for jenkins.service failed.
See 'systemctl status jenkins.service' and 'journalctl -xn' for details.
                                                           [FAILED]
 

相关文章:

  • 2021-05-21
  • 2021-08-07
  • 2022-01-08
  • 2021-12-27
  • 2022-01-02
  • 2021-11-12
  • 2021-05-16
  • 2021-11-23
猜你喜欢
  • 2021-12-18
  • 2021-12-07
  • 2021-07-13
  • 2021-04-02
  • 2022-01-14
  • 2021-09-25
相关资源
相似解决方案