Install a Jenkins on Ubuntu system

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

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

时间: 2024-11-12 14:36:58

Install a Jenkins on Ubuntu system的相关文章

Install a Redmine on Ubuntu system

# How to install a Redmine on Ubuntu system Ref to: https://www.linode.com/docs/applications/project-management/how-to-install-and-configure-redmine-on-ubuntu-16-04 # Change the password of admin user Above all, you need to switch into root role ```

Install LAMP Stack On Ubuntu 16.04

原文:http://www.unixmen.com/how-to-install-lamp-stack-on-ubuntu-16-04/ LAMP is a combination of operating system and open-source software stack. The acronym LAMP came from the first letters ofLinux, Apache HTTP Server, MySQL or MariaDB database, and PH

HOWTO install Oracle 11g on Ubuntu Linux 12.04 (Precise Pangolin) 64bits

安装了Ubuntu 12.04 64bit, 想在上面安装Oracle 11gr2,网上找了好多文档都没成功,最后完全参考了MordicusEtCubitus的文章. 成功安装的关键点:install additional packages, 在link过程中处理错误的方法. 原文:http://www.makina-corpus.org/blog/howto-install-oracle-11g-ubuntu-linux-1204-precise-pangolin-64bits Before

Install eclipse ns3 in ubuntu 14.04

1. NS3 install 参考NS3 tutorial即可. 2.eclipse 2.1下载 下载地址:http://www.eclipse.org/downloads/               Eclipse IDE for C/C++ Developers NOTE: you can know whether your ubuntu is 32-bit or 64-bit by executing the command "uname -m". 如果显示i686,你安装了3

Hudson on Ubuntu System JAVA_HOME

一.Java >java choose openjdk >sudo apt-get install open...... >java -version >javac choose openjdk >sudo apt-get install open...... >javac -version 找到java的安装目录 /usr/lib/jvm/java-1.6.0-openjdk 编辑 vi ~/.bashrc 最后添加上 export JAVA_HOME=/usr/li

Install laravel 5 on ubuntu server

Install laravel 5 on ubuntu server http://laravel.io/forum/06-10-2015-solved-install-laravel-5-on-ubuntu-server https://www.digitalocean.com/community/questions/how-to-install-laravel-5-on-ubuntu-nginx-server https://www.digitalocean.com/community/tu

关闭 ubuntu System program problem detected

关闭 ubuntu System program problem detected 小编使用的系统是Ubuntu 14.0.4,最近不知什么原因,每次开机都出现: System program problem detected 很麻烦,关闭方法: vim /etc/default/apport # set this to 0 to disable apport, or to 1 to enable it # you can temporarily override this with # sud

How To Manually Install Oracle Java on Ubuntu

Introduction Java is a programming technology originally developed by Sun Microsystems and later acquired by Oracle. Oracle Java is a proprietary implementation for Java that is free to download and use for commercial use, but not to redistribute, th

Install Google Pinyin on Ubuntu 14.04

Install Google Pinyin on Ubuntu 14.04 I've been spending more and more time on Ubuntu and I'm not used to the Chinese keyboard that ships with Ubuntu. The keyboard on Android works pretty well so here's a quick tutorial on how to install it on Ubuntu