Change Jenkins Default Port 8080 in Linux CentOS 7.
Here we will learn how to change Jenkins default port 8080 to any desired port. I will use port 8123 for my Jenkins server.
1. Open Jenkins configuration file by using vim or any editor.
#sudo vim /etc/sysconfig/jenkins
2. Inside the configuration file find the flowing line ‘JENKINS_PORT=”8080"’ and replace the port which you want to use.
Type: integer(0:65535)
Default: 8080
ServiceRestart: jenkins
Port Jenkins is listening on
Set to -1 to disableJENKINS_PORT=”8123"
3. After made the changes save and exit. And restart Jenkins service.
#sudo systemctl restart jenkins
4. You can verify now to accessing Jenkins on updated port.
You are done now..!! Enjoy.

No comments:
Post a Comment