Install Jenkins via Yum 1. Installation # yum source import wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo # Import key rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key # Install yum install -y jenkins 2. Open Ports # The port can be modified in the /etc/sysconfig/jenkins file, the default is 8080 firewall-cmd --add-port=8080/tcp --permanent firewall-cmd --reload 3. Configure Java path # Modify the jenkins startup script vim /etc/init.d/jenkins # Modify candidates to add java optional path: /usr/java/jdk1.8.0_181/bin/java candidates=" /etc/alternatives/java /usr/lib/jvm/java-1.8.0/bin/java /usr/lib/jvm/jre-1.8.0/bin/java /usr/lib/jvm/java-1.7.0/bin/java /usr/lib/jvm/jre-1.7.0/bin/java /usr/bin/java /usr/java/jdk1.8.0_181/bin/java " 4. Start Jenkins and set it to start at boot #Reload the service (due to the modification of the Jenkins startup script) systemctl daemon-reload #Start the Jenkins service systemctl start jenkins #Set the Jenkins service to start at boot #Since Jenkins is not a native service, you need to use the chkconfig command instead of the systemctl command /sbin/chkconfig jenkins on 5. Jenkins Initialization Use When you start Jenkins for the first time, you may see the page display "Please wait while Jenkins is getting ready to work ...". Edit the 6. Others 6.1 Set Jenkins time zone to Beijing time Open [System Management] -> [Script Command Line] and run the following command System.setProperty('org.apache.commons.jelly.tags.fmt.timeZone', 'Asia/Shanghai') The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Detailed example of jQuery's chain programming style
>>: Troubleshooting and solutions for MySQL auto-increment ID oversize problem
String extraction without delimiters Question Req...
Websites without https support will gradually be ...
This article example shares the specific code of ...
This article example shares the specific code of ...
Hello everyone, I am Liang Xu. When using Linux, ...
Problem phenomenon: [root@localhost ~]# docker im...
Table of contents Overview Object rest attribute ...
Check the top 100 highest scores in game history ...
1. Introduction to fastdfs 1. What is fastdfs Fas...
I rewrote my personal website recently. I bought ...
1. MacVlan There are many solutions to achieve cr...
Table of contents Understanding Prototypes Unders...
Table of contents 1. Scenario 2. Basic functions ...
Table of contents 1. The principle of index push-...
Recently, when I was using the Linux operating sy...