How to Change Jenkins HTTP port number?
Change a jenkins web http port in Windows
Step 1 – Stop the jenkins services
Step 2 – Go to the directory where you installed the Jenkins (In default, it is under Program Files/Jenkins)
Step 3 – Open the Jenkins.xml
Step 4 – Search –httpPort=8080 and replace the 8080 with the new port number that you wish.
Step 5 – Start the jenkins services
Change a jenkins Slave/Agent port in Windows
Step 1 – Stop the jenkins services
Step 2 – Go to the directory where you installed the Jenkins (In default, it is under Program Files/Jenkins)
Step 3 – Open the config.xml
Step 4 – Search “<slaveAgentPort>50000</slaveAgentPort>” and replace the 50000 with the new port number that you wish.
Step 5 – Start the jenkins services
Change a Jenkins web http port in Linux
Step 1 – Stop the Jenkins services
Step 2 – Know the information about Jenkins installation using the command “ps -eaf | grep Jenkins”
Step 3 – edit /etc/init.d/jenkins and look for jenkins config file “JENKINS_CONFIG=/etc/sysconfig/jenkins”
Step 4 – edit /etc/sysconfig/Jenkins and modify JENKINS_PORT=”8080″
Step 5 – Start the Jenkins services
I’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I am working at Cotocus. I blog tech insights at DevOps School, travel stories at Holiday Landmark, stock market tips at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at I reviewed , and SEO strategies at Wizbrand.
Please find my social handles as below;
Rajesh Kumar Personal Website
Rajesh Kumar at YOUTUBE
Rajesh Kumar at INSTAGRAM
Rajesh Kumar at X
Rajesh Kumar at FACEBOOK
Rajesh Kumar at LINKEDIN
Rajesh Kumar at PINTEREST
Rajesh Kumar at QUORA
Rajesh Kumar at WIZBRAND