In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Jenkins is an open source continuous integration tool written in java, which is widely used by companies at home and abroad. This chapter teaches you how to install Jenkins on a linux server.
First, get a linux server
To install git under linux, you must first have a linux server. As rookies, all the machines on hand must belong to windows. It is excruciating for a rookie like me to install a virtual machine. Here, the easiest way to get a linux server is to rent one from Aliyun. Select CentOS7.3 64-bit for the image.
Second, install jdk
The operation of Jenkins depends on jdk, so we have to install jdk before installing Jenkins. Students with no installation experience can refer to my another tutorial on installing jdk on a linux server. Portals: installing jdk on linux server
3. Yum installs Jenkins
It is recommended to use yum to install Jenkins, which is the most simple and convenient.
There is no Jenkins in yum's repos by default, so you need to add the Jenkins repository to yum repos first.
Sudo wget-O / etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.reposudo rpm-- import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
Yum install Jenkins
Yum install jenkins
Then you can see that the system starts to download and install automatically.
When prompted to download, enter y and press enter.
Wait patiently for the installation to complete.
Now that Jenkins is installed, it's best to change the configuration a little before starting. By default, Jenkins is started with a Jenkins user, but this user is not authorized by the system. Here, we will change the startup user to root;. In addition, the default port of Jenkins is 8080, which conflicts with the default port of tomcat. Let's also modify the default port.
Enter the command to enter the Jenkins configuration file
Vi / etc/sysconfig/jenkins
It is easy to find in the configuration file
Modify the configuration here
JENKINS_USER= "root" JENKINS_PORT= "8081"
After modifying the configuration, save and exit.
OK, now that the configuration file has been modified, you can start Jenkins.
Enter the startup command to start the Jenkins service.
Service jenkins start
The presence of OK indicates that Jenkins started successfully.
Enter ip:8081 in the browser to enter the Jenkins login page.
After entering the login page, Jenkins prompts us to enter the Super Admin password to unlock it. According to the prompt, we can find the password in the / var/lib/jenkins/secrets/initialAdminPassword file.
Enter the command to find the password.
Tail / var/lib/jenkins/secrets/initialAdminPassword
After finding the password, copy the password, paste it to the Jenkins unlock page, and click Continue to continue initializing the configuration. After a short wait, go to the plug-in installation page.
Here we click Install suggested plugins to install the default plug-in, of course, you can also click another button to install the specified plug-in.
After clicking, the page goes to the plug-in download and installation page.
Wait patiently for the full installation to be completed. After the installation is complete, the page automatically enters the administrator account registration page.
Everyone must be familiar with this page. Enter your own information to register. Click Save and Finish after entering the information.
Click Start using Jenkins to go to the Jenkins main page.
At this point, Jenkins installation and initialization is completed, the above is the full content of this article, I hope to be helpful to your learning, but also hope that you support a lot.
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.