The brief installation method of Jenkins in Linux is as follows:

Source: Internet
Author: User
Tags cloudbees

The brief installation method of Jenkins in Linux is as follows:
1. download the software packageJenkins
Visit the https://jenkins.io/download/ to download the latest (LTS version) war package.Tomcat
Visit the https://tomcat.apache.org/download-90.cgi to download the latest Tomcat 9.0.Cloudbees-folder
Visit the http://ftp.icm.edu.pl/packages/jenkins/plugins/cloudbees-folder/ to download the latest cloudbees-folder plug-in. 2. Environment configuration is installed in advanceJava 8, InConfigure environment variables in the/etc/profile file (or other configuration files)JAVA_HOME. Decompress the Tomcat package~ /Jenkins/directory~ /Jenkins/apache-tomcat-9.0.5/bin directoryCatalina. sh,Shutdown. sh andStartup. sh adds the execution permission. (Chmod + x *. sh) download the first stepPut jenkins. war~ /Jenkins/apache-tomcat-9.0.5/webapps/directory.3. start TomcatRun~ /Jenkins/apache-tomcat-9.0.5/bin/startup. sh script to start Tomcat (./Startup. sh ).
After Tomcat is started, jenkins. war is automatically decompressed to generate a jenkins directory. Browser accessHttp: // localhost: 8080/jenkins/will enter the Jenkins Unlock interface (Unlock Jenkins). You must enter the administrator password to continue accessing Jenkins.
The Administrator Password exists with the nameIn the initialAdminPassword file, the file location is displayed on the unlock interface (~ /. Jenkins/secrets/initialAdminPassword ). Enter the administrator password will enter the plug-in installation interface, some machines install Jenkins cannot access the URL starting with https, and download the plug-in needs to access the https://updates.jenkins.io/current/update-center.json, so may appearOffline.
In this case, you need to change the nameHudson. model. UpdateCenter. xml file, which is located in~ /. Jenkins/directory. Replace the url in the URL tag in the file with the url of an image website starting with http, such as a http://mirror.xmission.com/jenkins/updates/update-center.json.
Restart Tomcat (runShutdown. sh close and then executeStartup. sh enabled ). After entering the plug-in installation page again, you can see the content, but clicking install plug-in will result in an error:No such plugin: cloudbees-folder, which is not included in jenkins. war by default, so you need to install it manually.
Installation Method: downloadCloudbees-folder.hpi files placed~ /Jenkins/apache-tomcat-9.0.5/webapps/jenkins/WEB-INF/detached-plugins/directory and~ /. Jenkins/plugins/directory.
4. Reset the administrator password (optional)

After entering Jenkins, you canSystem Management-> User ManagementTo re-set the admin account password.Password in the initialAdminPassword file.

5. Install the plug-in (optional)

You canSystem Management-> Management plug-inInstall some plug-ins on the interface for ease of use (for example, Pipeline, BlueOcean, Gerrit Trigger, Timestamper, JIRA, and so on). If the plug-in fails to be installed online, you can use the browser to install the plug-in (. hpi) download to the local device, and thenAdvanced"Tab.

Note: The above is only one way to install Jenkins.
In addition, you can alsoJava-Djsse. enableSNIExtension = false-jar jenkins. war -- httpPort = 8081 command installation, because jenkins. war has a built-in Jetty Server, which is not described in detail.
Jenkins also provides binary installation packages for various platforms. It is also convenient to directly use the installation package.

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.