Jenkins installation summary

Jenkins said the official documentation of the installation steps, http://jenkins.io/zh/doc/pipeline/tour/getting-started/  related installation resources can be downloaded from official documents

Before installing Jenkins, Mac computers need to install the Java environment, which is the official document said JDK.

What is JDK? !! This is not know?  

 JDK stands for Java Development ToolKit, is a Java language development kit. JAVA JDK is the core, including the Java Runtime Environment (Java Runtime Envirnment), a bunch of Java tools (javac / java / jdb, etc.) and Java-based libraries (Java API that is included rt.jar).

Most mainstream JDK is Sun's release of JDK, in addition to the Sun, there are many companies and organizations have developed their own JDK. IBM has developed their own JDK, domestic Taobao also developed their own JDK, organizations develop their own JDK is to get some increase in some ways, to suit their needs.

JDK is released for building applications on the Java platform, applet and component development environment. It does not provide specific development software, which provides that no matter what you use to write Java programs must be used to develop software libraries and Java language specification.

Go to the official website to download the corresponding JDK JDK installation package, Jenkins requires Java 8 here, so the sights, do not download the wrong version , the first time I installed the latest version of the lead when Jenkins terminal starts, the JDK is not being given the support list.

When the download JDK installed, you can see the terminal, enter the following command:

ls /Library/Java/JavaVirtualMachines/

Output:

JDK installation is complete, the next step is to download and launch Jenkins, the official website to download Jenkins , after the download is complete, look at what Jenkins.war folder, the corresponding terminal cd to the directory, then run the following command:

java -jar jenkins.war --httpPort=8080

Command is completed, there will be a red error, Container the Startup failed The, since no containers, so do not care about, the next step is to open the browser to access the link http://localhost:8080

Unlock Jenkins

Set the admin password, then you need to find the corresponding local encryption password again to confirm the input string, if all replication path can not be found, because there is no permission to read the file.

1. First /Users/Shared/Jenkins/Homefolders;
2. Right-click the secretsfolder, select 显示简介;
3. Scroll to the bottom, then click the lower right corner of the image lock> enter your password> OK;
4. Click the lower left corner of the pop-up window "+ "Add the current user to the computer 共享与权限, a set 只读or 读与写;
5. open the secretsfolder, locate the initialAdminPasswordfile to get initial administrator password. If you do not have access to the file, you need to right-click the file and select 显示简介, then repeat the above steps 3 and 4 to access the file.

Enter the encryption string entered to choose to install the plug-in interface, I recommend selecting the plug-ins, and other plug-in installation is complete Jenkins on the installation is completed.

Guess you like

Origin www.cnblogs.com/block123/p/11589154.html