{"id":4995,"date":"2018-10-27T03:47:18","date_gmt":"2018-10-27T03:47:18","guid":{"rendered":"https:\/\/www.testingdocs.com\/questions\/?p=4995"},"modified":"2024-08-09T07:02:58","modified_gmt":"2024-08-09T07:02:58","slug":"how-to-change-jenkins-port-number-on-windows","status":"publish","type":"post","link":"https:\/\/www.testingdocs.com\/questions\/how-to-change-jenkins-port-number-on-windows\/","title":{"rendered":"How to change Jenkins Port Number on Windows"},"content":{"rendered":"<h2>How to change Jenkins Port Number on Windows<\/h2>\n<p>Lets get the steps involved in changing the Jenkins port number. Sometimes it is required to change port number of Jenkins Server due to port conflicts between different applications and services. In this tutorial, we will change the port number of Jenkins on the Windows platform.<\/p>\n<p><a href=\"https:\/\/www.testingdocs.com\/questions\/how-to-fix-severe-failed-to-initialize-component-connectorhttp-1-1-8080-catalina-lifecycleexception-protocol-handler-initialization-failed\/\">https:\/\/www.testingdocs.com\/questions\/how-to-fix-severe-failed-to-initialize-component-connectorhttp-1-1-8080-catalina-lifecycleexception-protocol-handler-initialization-failed\/<\/a><\/p>\n<h3>Steps<\/h3>\n<p>Open the <strong>Jenkins.xml<\/strong> file under the Jenkins installation directory.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4996\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Jenkins-xml-file.png\" alt=\"Jenkins xml file\" width=\"1713\" height=\"976\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Jenkins-xml-file.png 1713w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Jenkins-xml-file-300x171.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Jenkins-xml-file-1024x583.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Jenkins-xml-file-768x438.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Jenkins-xml-file-1536x875.png 1536w\" sizes=\"auto, (max-width: 1713px) 100vw, 1713px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>By default its under the directory : Program Files\\Jenkins or Program Files (x86)\\Jenkins<\/p>\n<ul>\n<li>Edit the port from 8080 to some other number lets say 9090.<\/li>\n<\/ul>\n<p>&#8211;httpPort=9090<\/p>\n<p>&lt;arguments&gt;-Xrs -Xmx256m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar &#8220;%BASE%\\jenkins.war&#8221; &#8211;httpPort=9090 &#8211;webroot=&#8221;%BASE%\\war&#8221;&lt;\/arguments&gt;<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5000\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Jenkins-http-port-number.png\" alt=\"Jenkins http port number\" width=\"1920\" height=\"952\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Jenkins-http-port-number.png 1920w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Jenkins-http-port-number-300x149.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Jenkins-http-port-number-1024x508.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Jenkins-http-port-number-768x381.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Jenkins-http-port-number-1536x762.png 1536w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<ul>\n<li>Type <strong>services.msc<\/strong> in the search box.<\/li>\n<li>Locate the Jenkins Service in the Window.<br \/>\nRestart Jenkins Server.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4997\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Jenkins-Service.png\" alt=\"Jenkins Service\" width=\"1878\" height=\"573\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Jenkins-Service.png 1878w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Jenkins-Service-300x92.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Jenkins-Service-1024x312.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Jenkins-Service-768x234.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Jenkins-Service-1536x469.png 1536w\" sizes=\"auto, (max-width: 1878px) 100vw, 1878px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Login with the new port URL on the browser. Now we should be able to run the Jenkins on the new specified port number in the configuration file.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5004\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Jenkins-New-Port.png\" alt=\"Jenkins New Port\" width=\"1701\" height=\"947\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Jenkins-New-Port.png 1701w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Jenkins-New-Port-300x167.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Jenkins-New-Port-1024x570.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Jenkins-New-Port-768x428.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Jenkins-New-Port-1536x855.png 1536w\" sizes=\"auto, (max-width: 1701px) 100vw, 1701px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to change Jenkins Port Number on Windows Lets get the steps involved in changing the Jenkins port number. Sometimes it is required to change port number of Jenkins Server due to port conflicts between different applications and services. In this tutorial, we will change the port number of Jenkins on the Windows platform. https:\/\/www.testingdocs.com\/questions\/how-to-fix-severe-failed-to-initialize-component-connectorhttp-1-1-8080-catalina-lifecycleexception-protocol-handler-initialization-failed\/ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"class_list":["post-4995","post","type-post","status-publish","format-standard","hentry","category-windows","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"_links":{"self":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/4995","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/comments?post=4995"}],"version-history":[{"count":6,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/4995\/revisions"}],"predecessor-version":[{"id":23752,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/4995\/revisions\/23752"}],"wp:attachment":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/media?parent=4995"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/categories?post=4995"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/tags?post=4995"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}