Aliyun CentOS Environment Linux on Jenkins installation <六> __linux

Source: Internet
Author: User
Tags aliyun
Aliyun CentOS Environment Linux Jenkins installation < six >

Aliyun CentOS Environment Linux Jenkins installation six first foreword second download upload third launch

First: Preface

The purpose of this article is to deploy the Jenkins service in a Aliyun CentOS system using a Tomcat container.
tomcat:apache-tomcat-7.0.68
jdk:1.8
jenkins:2.8.1

Main records the steps to install Jenkins on a Linux system. Second: Download/upload

Download the latest version of Jenkins.war from the https://jenkins.io/download/website, and of course it can be downloaded directly from the RPM installation package.
The installation commands are as follows:

RPM-IVH  jenkinsxxx.noarch.rpm

If you want to uninstall check the name of the installation package first:

Then uninstall using the identified name, uninstall the following command:

Rpm-e jenkinsxxx

The main introduction Here is the case of putting Jenkins in a Tomcat container.

Upload the downloaded Jenkinsxxx.war package to the Apache-tomcat-7.0.68/webapp directory

Students who do not know how to install Tomcat and JDK please go.
Tomcat installation
Java installation
Note The security group setting for Aliyun Third: Start

Enter the bin directory to start Tomcat. Come out the following interface

Hey. It's strange that you should come out under normal circumstances.

And I've tried the same war package, and the same version of Tomcat appearing on the Windown is also the page that wants you to enter the initialization password, what's wrong with it.
Jenkins defaults to the /root/.jenkins"directory, and when I enter the root directory there is no". Jenkins "directory.
After repeated studies, the original ". Jenkins" directory is hidden by default, using "ls-all" can be displayed, and found in the "/root/.jenkins/users/admin" There is an admin account setting under the directory, so the default account for Jenkins is "admin", and the password is the initialization password Initialadminpassword specified in the file.

Notice. Jenkins is hidden by default, don't doubt your eyes. Use ' Ls-all ' to display all files, including hidden files

Then enter the "admin/initialization password" can be successful landing.

You can set a password that you can remember under System administration-> User Management
As follows:

You can also create new users.

Of course the default installed Plug-ins are naturally not, as long as manual one installed. Other netizens said enter the initial password and then install the default plugin page I did not see the Linux environment, Windows environment has seen, who knows the message, learn from each other.

The use of Jenkins can refer to another article I wrote
Jenkins automatically deploys MAVEN +tomcat+linux environment Java project and automatically deploys to extranet

2017.11.14 Supplement

Today, with the company's 4-core 8G Aliyun service, the above steps, instead, will appear the input initialization password and select the default plug-in installation interface. is not the same as the running memory results are different. 10,001 * * Pentium and past.

Related Article

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.