Involved contos7 jdk1.8 jenkins-2.190.3-1.1 1. Install JDK#Method 1: Xiaobai recommends downloading directly with the command yum install java-1.8.0-openjdk* -y ## Method 2: Download the official JDK1.8 package: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html Copy to the server: There are many ways to do this: I download xftp7 and then drag it in directly Unzip: tar -zxvf jdk-****-linux-x64.tar.gz Open the configuration environment variables: vim/etc/profiles Configuration as shown Update environment variables: Source /etc/profile Input View: Java -version As shown in the figure: indicates success 2. Install JenkinsCommand to switch to your own download directory and download directly with command wget http://pkg.jenkins-ci.org/redhat-stable/jenkins-2.190.3-1.1.noarch.rpm Download and install directly rpm -ivh jenkins-2.190.3-1.1.noarch.rpm Installation successful as shown 3. Modify Jenkins configurationvi /etc/syscofig/jenkins Modify the port as follows: JENKINS_PORT="8888" 4. Start JenkinsStart command: systemctl start jenkins As shown in the figure: indicates success If the following error occurs (it must be the second method to install JDK) Job for jenkins.service failed because the control process exited with error code. See “systemctl status jenkins.service” and “journalctl -xe” for details. solve: Open the file: vim /etc/init.d/jenkins Configure the JDK path in Jenkins As shown in the figure: After configuration, execute the following commands in sequence Run the systemctl daemon-reload command to reload the configuration file. Run the systemctl start jenkins command to start Jenkins. Execute the systemctl status jenkins.service command to view the status of the Jenkins service. As shown in the figure: indicates success 5. Open the server port and access it through the browserCentoS7 1. Open the firewall systemctl start firewalld 2. Open the specified port firewall-cmd --zone=public --add-port=8888/tcp --permanent Command meaning: --zone #scope --add-port=8888/tcp #Add port, the format is: port/communication protocol --permanent #Permanently effective, without this parameter, it will become invalid after restart 3. Restart the firewall firewall-cmd --reload 4. Check the port number netstat -ntlp // View all current TCP ports Visit: http://192.168.5.53:8888 As shown in the figure: indicates success 6. Get the administrator passwordCommand input: cat /var/lib/jenkins/secrets/initialAdminPassword 7. Customizing JenkinsIt is recommended to click "Select plugin to install" Then on the next screen, uncheck all the selected plugins. Because Jenkins connects to the official by default, the speed is very slow and will fail, so skip the plugin installation first. 8. Create the first administrator user1) Create a user according to the prompts (no big problem) 2) Instance configuration (default is fine) 3) If you see Jenkins is ready, it means everything is fine. Click Start and wait for a while. This is the end of this article about the super detailed process of installing Jenkins on liunx. For more relevant content about installing Jenkins on liunx, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope everyone will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Advantages and disadvantages of Table layout and why it is not recommended
>>: CSS example code to hide the scroll bar and scroll the content
You can save this logo locally as a .rar file and...
If you are looking to monitor your system interac...
Preface I just bought a new VPS. The data disk of...
Detailed explanation of tinyMCE usage initializat...
This article introduces and shares the responsive...
Only show the top border <table frame=above>...
1. Download the latest nginx docker image $ docke...
You may not have had any relevant needs for this ...
8 optimization methods for MySQL database design,...
CentOS 6 and earlier versions provide MySQL serve...
I have read countless my.cnf configurations on th...
Dependence on knowledge Go cross-compilation basi...
Log in docker login Complete the registration and...
Table of contents Array deduplication 1. from() s...
Table of contents 1. mixin.scss 2. Single file us...