Linux system installation and deployment of Jenkins detailed tutorial (graphic explanation)

Foreword: Recently, I need to use Jenkins to deploy the project, so I came up with a tutorial on how to install and deploy Jenkins using the Linux system. The overall deployment process is quite smooth, so I would like to share it! 

Blogger's other deployment tutorials:

1. Jenkins deploys front-end and back-end separation projects: The most complete graphic tutorial for Jenkins deployment front-end and back-end separation projects (hands-on teaching)

2. Docker deploys front-end and back-end separation projects: deploy front-end and back-end separation projects through Docker (pro-test available)

3. Linux system deployment Tomcat: Linux system deployment Tomcat detailed tutorial (graphic explanation)

4. Deploy Nginx in Linux system: Detailed tutorial on deploying Nginx in Linux system (graphic explanation)

5. Linux system configuration Maven: Linux system configuration Maven environment detailed tutorial (graphic explanation)

6. Linux system configuration Node.js: Linux system configuration Node.js environment detailed tutorial (graphic explanation)

7. Linux system installation and deployment of MySQL: A complete tutorial on Linux system installation and deployment of MySQL (detailed explanation with pictures and texts)

8. Linux system installation and deployment of Redis: A complete tutorial on Linux system installation and deployment of Redis (detailed explanation with pictures and texts)

9. Linux system installation and deployment of MongoDB: A complete tutorial on Linux system installation and deployment of MongoDB (detailed explanation with pictures and texts)

10. Pagoda panel deployment front-end separation project: Hands-on teaching using the pagoda panel deployment front-end separation project (full details)

Table of contents

1. Install JDK11 and Tomcat

2. Prepare the Jenkins installation package

3. Deploy Jenkins

4. Initialize Jenkins 

V. Summary 


1. Install JDK11 and Tomcat

If you have not installed it, you can read my blog first: Linux system deployment Tomcat detailed tutorial (graphic explanation)

After the installation is complete, continue 

2. Prepare the Jenkins installation package

This is the official download address of Jenkins: Jenkins download and deployment

Click directly to download the .war package

3. Deploy Jenkins

1. Upload the downloaded war package to the server (Xftp)

2. Restart the Tomcat server

First cd into the bin directory of Tomcat

stop

sh shutdown.sh

turn on

sh startup.sh

3. After restarting and refreshing the folder, you will find an additional jenkins directory

4. The port number of my Tomcat is 8080, so I directly access it through http://ip:port number/jenkins , and the deployment is completed

4. Initialize Jenkins 

1. Execute the following command according to the prompt

cat /root/.jenkins/secrets/initialAdminPassword

This will get the administrator password 

539d1718c35f4b568e60161d2aa08d21

2. Choose to install the recommended plug-ins

3. Just wait for a while

4. Fill in the information

If you choose to use the admin account to continue, the user name for logging in to Jenkins next time is admin, and the password is the initial password above

If you choose to save and finish, the next time you log in to Jenkins, you will log in with the administrator user and password created this time.

5. Default, click save and finish

6. Click to start using Jenkins

7. In this way, our Jenkins is initialized

V. Summary 

The above is a complete tutorial on how to install and deploy Jenkins using Linux. If you have any questions, welcome to discuss in the comment area! 

The complete deployment tutorial is here: Jenkins Deployment Front-end Separation Project The most complete graphic tutorial (hands-on teaching)

Guess you like

Origin blog.csdn.net/HJW_233/article/details/131876290