Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install Jenkins in Ubuntu16.04

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article is about how Ubuntu16.04 installs Jenkins. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

1. Prerequisite preparation

JDK has been installed

Echo $PATH

Create a soft connection and configure it according to your own jdk installation path

Ln-s / java/jdk1.8.0_231/bin/java / usr/bin/java

The machines are connected to the Internet.

Uninstall jenkins (skip if it is already installed)

Sudo apt-get remove jenkinssudo apt-get purge jenkinssudo apt-get purge-auto-remove jenkins

two。 Complete the installation with the following command

Wget-Q-O-https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add-sudo sh-c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > / etc/apt/sources.list.d/jenkins.list'sudo apt-get updatesudo apt-get install jenkins

3. Start jenkis

Sudo / etc/init.d/jenkins [start | restart | stop]

4. View the installation password

Cat / var/lib/jenkins/secrets/initialAdminPassword

5. Open the browser http://192.168.215.50:8080 (if tomcat is installed on the server, change the port of jenkins)

$sudo vi / etc/default/jenkins# modify the following content HTTP_PORT=8085# restart jenkins service $sudo / etc/init.d/jenkins restart

Enter the password you just queried

6. Select the recommended installation plug-in

Wait patiently for installation

7. Create the first administrative account

Thank you for reading! This is the end of this article on "how to install Jenkins in Ubuntu16.04". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report