jenkins (yum install mode) Jenkins mounting (3) -linux under

Original: https: //www.cnblogs.com/imyalost/p/8710933.html

Installation 1:
 

jenkins open source continuous integration tool is a Java development, widely used in project development, with automated build, test and deployment features, it requires Java runtime environment.

This blog, describes the steps to install jenkins under under Linux, for reference purposes only. . .

Or installed using yum way, more simple and convenient. . .

 

1, add the repository

The default is no yum repo Jenkins, Jenkins first need to add repositories to yum repos, execute the following command:

 sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo 

Interface is as follows:

Then execute the following command:

 sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key 

 

2, install jenkins

The installation command:  yum install Jenkins

As shown below, when asked whether to download, enter y, and then hit enter, patiently waiting for the installation is complete:

 

3, modify the configuration

Jenkins After successful installation, the default user is jenkins, port 8080, in order to prevent conflict, and assign permissions to users, we modify the user name and port.

Enter the command, enter jenkins configuration file:  vi / etc / sysconfig / jenkins 

Interface is shown below:

Modify the user name, port, and then save and exit; interface is as follows:

PS: The cursor moves to the place you need to modify the interface, click the 'x' to delete the original configuration, click on the 'i', this time beneath the screen there will be a - INSERT - , this time you can enter the content needs to be modified ; after editing, the input 'wq!' save!

 

4, start the service

Enter the command:  Service Jenkins Start to start the service:

Then in the browser IP + port, plug-in installation for other operations (with reference to the specific operations described herein before may blog: Jenkins simple installation and configuration )

 

5, other common commands

View Log:  vi /var/log/jenkins/jenkins.log 

Query existing system installer:  RPM -qa | grep Jenkins 

 

 

 

 

 

 

 

 

Installation 2:

By the way weget

















jenkins open source continuous integration tool is a Java development, widely used in project development, with automated build, test and deployment features, it requires Java runtime environment.

This blog, describes the steps to install jenkins under under Linux, for reference purposes only. . .

Or installed using yum way, more simple and convenient. . .

 

1, add the repository

The default is no yum repo Jenkins, Jenkins first need to add repositories to yum repos, execute the following command:

 sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo 

Interface is as follows:

Then execute the following command:

 sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key 

 

2, install jenkins

The installation command:  yum install Jenkins

As shown below, when asked whether to download, enter y, and then hit enter, patiently waiting for the installation is complete:

 

3, modify the configuration

Jenkins After successful installation, the default user is jenkins, port 8080, in order to prevent conflict, and assign permissions to users, we modify the user name and port.

Enter the command, enter jenkins configuration file:  vi / etc / sysconfig / jenkins 

Interface is shown below:

Modify the user name, port, and then save and exit; interface is as follows:

PS: The cursor moves to the place you need to modify the interface, click the 'x' to delete the original configuration, click on the 'i', this time beneath the screen there will be a - INSERT - , this time you can enter the content needs to be modified ; after editing, the input 'wq!' save!

 

4, start the service

Enter the command:  Service Jenkins Start to start the service:

Then in the browser IP + port, plug-in installation for other operations (with reference to the specific operations described herein before may blog: Jenkins simple installation and configuration )

 

5, other common commands

View Log:  vi /var/log/jenkins/jenkins.log 

Query existing system installer:  RPM -qa | grep Jenkins 

 

 

 

 

 

 

 

 

Installation 2:

By the way weget

















Guess you like

Origin www.cnblogs.com/yiyaxuan/p/12450290.html