1. Prepare the Java environment, jdk1.8 Check whether Java is installed. If not, install the Java environment first: java -version 2. Install Jenkins Official website: https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Red+Hat+distributions#InstallingJenkinson (1) Install the stable version sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key sudo yum install jenkins (2) Install the latest version sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key sudo yum install jenkins (3) Select a version and wait for the installation to complete 3. Configure Jenkins Description: Default installation directory (1) /usr/lib/jenkins/: Jenkins installation directory, where the WAR package will be placed. (1) Modify the default port number Edit the file: vim /etc/sysconfig/jenkins Find JENKINS_PORT and change the default port number (8080). I changed it to 8081. (2) Modify the JDK configuration Edit the file: vim /etc/init.d/jenkins Find candidates and add your own jdk java path in the first line Note: Linux view jdk installation path command - which java (3) Modify the firewall configuration: Choose one of the following methods to execute (1) Open port 8081 and restart the firewall: (2) Turn off the firewall: systemctl stop firewalld 4.Jenkins start/restart/stop commands Linux command line: (1) Start: service jenkins start Enter Jenkins through the browser (1) Log in: http://your own IP:8081/ 5. Log in to Jenkins via browser (1) Unlock Jenkins: Enter the command: Copy the administrator password into the input box: 92aa3b378394496fb9cd7f0c300 6. Install plugins according to your needs Summarize The above is the steps for installing Jenkins on Linux and various problem solving (page access initialization password) introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: WeChat applet picker multi-column selector (mode = multiSelector)
>>: mysql-8.0.16 winx64 latest installation tutorial with pictures and text
It is no exaggeration to say that hyperlinks conne...
Frame structure tag <frameset></frameset...
Table of contents 1. Union Type 2. Crossover Type...
1. Introduction Image maps allow you to designate...
Dimensionality reduction of two-dimensional array...
1. Environmental Preparation 1.1 Basic Environmen...
Table name and fields –1. Student List Student (s...
Because I want the virtual machine to have its ow...
Table of contents Prototype chain diagram Essenti...
The Internet is already saturated with articles o...
In our daily work, we often come into contact wit...
Both methods can be used to execute a piece of ja...
1. Use the transform attribute to display the ima...
template <el-table :data="dataList"&...
Recently, there is a requirement for uploading pi...