Jenkins download and install / Jenkins modify the port number

1, jenkins is a continuous integration tool is based on a Java development. Ongoing software release / test project; monitoring work performed outside calls. Key words: continuous integration, continuous delivery.
2, jenkins official website to download: https://jenkins.io/download/
can be downloaded war file. jenkins is written in java jdk environment it needs to run.
3, run:
1) Open a terminal, cd to Jenkins installation directory (ie jenkins.war directory, such as: D: \ Program Files (x86 ) \ Jenkins), the implementation of java -jar jenkins.war
then visit steady localhost: 8080 to
2) will jenkins.war into tomcat webapps directory files in the installation folder, when you start tomcat, jenkins will be started up /, then visit localhost: 8080 / jenkins to

. 4, Jenkins default port number is 8080, 8080 is Tomcat, jenkins can modify the default port number modification method:
(1) temporarily modify:
1) Open the terminal, cd to Jenkins is installed (i.e. jenkins.war directory)
2 ) Run: "java -jar jenkins.war --ajp13Port = -1 --httpPort = 8081"
which is the new port number 8081, you may also be provided to other ports.
In this way only temporarily modify the port number, if you restart Jenkins will find the words or the start of 8080, before you modify the port created in the job are gone.

(2) Permanent: In order to solve the above problem forever, we can seek help bat script or shell script:
bat script as an example:
create a new file, called run_jenkins.bat
the contents inside are as follows:
d:
cd D: \ dev \ ----- Jenkins here is the path jenkins .war package
java -jar jenkins.war --ajp13Port = -1 --httpPort = 8081

Jenkins to start by running this bat file
and then open a browser to access:
HTTP: // localhost: 8081

Jenkins always start by running this script file, in fact, always set the port once Jenkins, although the method is not brilliant but it does solve the problem

Published 19 original articles · won praise 6 · views 10000 +

Guess you like

Origin blog.csdn.net/P502520/article/details/87609053