码迷,mamicode.com
首页 > 系统相关 > 详细

Install a Jenkins on Ubuntu system

时间:2017-11-02 11:17:33      阅读:221      评论:0      收藏:0      [点我收藏+]

标签:==   user   version   etc   var   emc   bsp   jenkins   apt   

================================================================================
Jenkins Environment
================================================================================

prerequisites: install java
check if Java is not already installed:
java -version
If it returns "The program java can be found in the following packages", Java hasn‘t been installed yet, so execute the following command:
sudo apt-get install default-jre

 

#use deploy user goes to install jenkins service

su - deploy

wget -q -O - http://pkg.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 systemctl enable jenkins
sudo /etc/systemd/systemd-sysv-install enable jenkins


check the service whether is running normally:

```sudo service jenkins status```

 

run Jenkins:

```sudo service jenkins start```

 

stop Jenkins:

```sudo service jenkins stop```

 

restart Jenkins:

```sudo service jenkins restart```

 

 

Install Directory:/var/lib/jenkins
Log Directory:/var/log/jenkins/jenkins.log

 

================================================================================

Install a Jenkins on Ubuntu system

标签:==   user   version   etc   var   emc   bsp   jenkins   apt   

原文地址:http://www.cnblogs.com/stavenVanderbilt/p/7770696.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!