Install a Jenkins on Ubuntu system

Source: Internet
Author: User

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

Prerequisites:install Java
Check if Java is not already installed:
Java-version
If it returns "The program Java can is found in the following packages", Java hasn ' t been installed yet, so execute the FO llowing 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.