{"id":2090,"date":"2017-12-07T10:14:33","date_gmt":"2017-12-07T10:14:33","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=2090"},"modified":"2021-11-18T06:47:33","modified_gmt":"2021-11-18T06:47:33","slug":"how-to-change-jenkins-http-port-number","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/how-to-change-jenkins-http-port-number\/","title":{"rendered":"How to Change Jenkins HTTP port number?"},"content":{"rendered":"<p>How to Change Jenkins HTTP port number?<\/p>\n<p><strong>Change a jenkins web http port in Windows<\/strong><br \/>Step 1 &#8211; Stop the jenkins services<br \/>Step 2 &#8211; Go to the directory where you installed the Jenkins (In default, it is under Program Files\/Jenkins)<br \/>Step 3 &#8211; Open the Jenkins.xml<br \/>Step 4 &#8211; Search &#8211;httpPort=8080 and replace the 8080 with the new port number that you wish.<br \/>Step 5 &#8211; Start the jenkins services<\/p>\n<p><strong>Change a jenkins Slave\/Agent port in Windows<\/strong><\/p>\n<p>Step 1 &#8211; Stop the jenkins services<br \/>Step 2 &#8211; Go to the directory where you installed the Jenkins (In default, it is under Program Files\/Jenkins)<br \/>Step 3 &#8211; Open the config.xml<br \/>Step 4 &#8211; Search &#8220;&lt;slaveAgentPort&gt;50000&lt;\/slaveAgentPort&gt;&#8221; and replace the 50000 with the new port number that you wish.<br \/>Step 5 &#8211; Start the jenkins services<\/p>\n<p><strong>Change a Jenkins web http port in Linux<\/strong><br \/>Step 1 &#8211; Stop the Jenkins services<\/p>\n<p>Step 2 &#8211; Know the information about Jenkins installation using the command &#8220;ps -eaf | grep Jenkins&#8221;<\/p>\n<p>Step 3 &#8211; edit \/etc\/init.d\/jenkins and look for jenkins config file &#8220;JENKINS_CONFIG=\/etc\/sysconfig\/jenkins&#8221;<\/p>\n<p>Step 4 &#8211; edit \/etc\/sysconfig\/Jenkins and modify JENKINS_PORT=&#8221;8080&#8243;<\/p>\n<p>Step 5 &#8211; Start the Jenkins services<\/p>\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_90923\"><figure class=\"wp-block-embed wp-block-embed-youtube is-type-video is-provider-youtube epyt-figure\"><div class=\"wp-block-embed__wrapper\"><iframe loading=\"lazy\"  id=\"_ytid_41418\"  width=\"760\" height=\"427\"  data-origwidth=\"760\" data-origheight=\"427\" src=\"https:\/\/www.youtube.com\/embed\/?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;\" class=\"__youtube_prefs__  no-lazyload\" title=\"YouTube player\"  data-epytgalleryid=\"epyt_gallery_90923\"  allow=\"fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen data-no-lazy=\"1\" data-skipgform_ajax_framebjll=\"\"><\/iframe><\/div><\/figure><div class=\"epyt-gallery-list\"><div>Sorry, there was a YouTube error.<\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>How to Change Jenkins HTTP port number? Change a jenkins web http port in WindowsStep 1 &#8211; Stop the jenkins servicesStep 2 &#8211; Go to the directory where you installed the Jenkins (In default, it is under Program Files\/Jenkins)Step 3 &#8211; Open the Jenkins.xmlStep 4 &#8211; Search &#8211;httpPort=8080 and replace the 8080 with the new&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_joinchat":[],"footnotes":""},"categories":[42],"tags":[5195,5181,145,456],"class_list":["post-2090","post","type-post","status-publish","format-standard","hentry","category-jenkins","tag-5195","tag-agent","tag-jenkins","tag-port"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2090","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=2090"}],"version-history":[{"count":5,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2090\/revisions"}],"predecessor-version":[{"id":25694,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2090\/revisions\/25694"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=2090"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=2090"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=2090"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}