首页 > 系统服务 > 详细

Install a Jenkins on Ubuntu system

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

================================================================================
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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!