In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article focuses on "distributed architecture Jenkins deployment and configuration methods", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Now let the editor to take you to learn "distributed architecture Jenkins deployment and configuration method" it!
one。 Distributed service architecture diagram
two。 Installation and configuration of Jenkins for continuous integration
1. Download from the website (https://pkg.jenkins.io/redhat-stable/):
Jenkins-2.176.2-1.1.noarch.rpm
two。 Install the jenkins repository
The official website found the installation method of RedHat: https://pkg.jenkins.io/redhat-stable/.
Wget-O / etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.reporpm-- import https://pkg.jenkins.io/redhat-stable/jenkins.io.key3. Install jenkins
Yum install jenkins-y
See which files are installed by jenkins.
[root@jenkins ~] # rpm-ql jenkins
/ etc/init.d/jenkins
/ etc/logrotate.d/jenkins
/ etc/sysconfig/jenkins
/ usr/lib/jenkins
/ usr/lib/jenkins/jenkins.war
/ usr/sbin/rcjenkins
/ var/cache/jenkins
/ var/lib/jenkins
/ var/log/jenkins
4. Initialization
5. Select the plug-in to install
6. Configure the administrator
7. Global tool configuration
8.JDK configuration
9.Maven tool configuration
10.Git tool configuration
11. Install the Mavan plug-in
At present, we still don't have maven to create the project, because we haven't installed the plug-in yet.
Install Maven Integrationa
12.Publish Over SSH plug-in installation
13. Now we click New, and we can see the construction of the maven project
Configure the Maven project
Configure Git source code address and branch
Note: to select a user, you need to configure a credential configuration in advance: configure an git account and password
Configure the build environment, copy the jar package and start the jar package
13.4 build configuration
14. If an error is reported when performing a file copy.
Problems encountered with scp copy
Solution: use key files
It is assumed that host A (192.168.100.3) is used to obtain the file of host B (192.168.100.4).
Execute the following command on host A to generate the pairing key:
Ssh-keygen-t rsa
When prompted, press enter by default, and the public key is stored in the .ssh directory under the user directory. For example, root is stored in:
/ root/.ssh/id_rsa.pub
Copy the id_rsa.pub file in the .ssh directory to the ~ / .ssh/ directory of host B and rename it authorized_keys
Execute the command in host An and establish trust with host B, for example (assuming that the IP of host B is: 192.168.100.4):
Scp / .ssh/id_rsa.pub 192.168.100.4:/root/.ssh/authorized_keys
Now you can use the scp and ssh commands to get the file of host B without a password.
If you enter ssh 192.168.100.4, you don't need a password.
Note: in fact, the id_rsa.pub content can be added to the authorized_keys of the other machine.
Note: the dependent parent.pom package cannot be found after the installation is complete.
Xxx-biz-framework downloads this code to the server and installs it into the Maven service repository.
Note: when the installation is complete and forwarded to the nginx,nginx proxy jenkins service through SLB configuration, jump to the home page and report 404.
The solution is as follows:
Vim / etc/sysconfig/jenkins adds prefix
JENKINS_ARGS= "--prefix=/jenkins"
Start the Jenkins command: sudo service jenkins start
At this point, I believe you have a deeper understanding of the "distributed architecture Jenkins deployment and configuration method", might as well come to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.