Change default port of Jenkins on CentOS

The Jenkins project provides a rpm installation repository for CentOS which installs Jenkins with some changed locations for configuration files.

If you want to change the default port for Jenkins you need to change the file /etc/sysconfig/jenkins

JENKINS_PORT=”8080″

Change it to the port you want to use for Jenkins. Default is port 8080.

To deliver Jenkins to the web I use Apache as a reverse proxy in front of it to have some easy to configure access control.

Leave a Reply

Your email address will not be published. Required fields are marked *