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
The floating-point types supported in MySQL are F...
1. Check the software installation path: There is...
This article shares the specific code of JavaScri...
Preview versions of Safari (Technology Preview 10...
Table of contents EffectList Collection EffectLis...
location expression type ~ indicates to perform a...
1. Transactions have ACID characteristics Atomici...
Table of contents 1. Control the display and hidi...
Since I usually use the docker build command to g...
PSD to div css web page cutting example Step 1: F...
What are :is and :where? :is() and :where() are p...
This article example shares the specific code of ...
1. Error reproduction I can access the MySQL data...
Preface In databases such as Oracle and SQL Serve...
1. Change the Host field value of a record in the...