Changing Jenkins default port on fedora 26
By default Jenkins runs on port 8080, this can be changed by editing /etc/sysconfig/jenkins file.
Check the current port:
$ grep JENKINS_PORT= /etc/sysconfig/jenkins
JENKINS_PORT="8080"
Change the port and restart Jenkins:
$ systemctl restart jenkins
$ firewall-cmd --add-port=7070/tcp --permanent
success
$ firewall-cmd --reload
success
Test with curl:
$ curl -I https://localhost:7070
HTTP/1.1 200 OK
X-Content-Type-Options: nosniff
Content-Type: text/html;charset=UTF-8
Related Articles
Changing Jenkins default port on fedora 26
By default Jenkins runs on port 8080, this can be changed by editing /etc/sysconfig/jenkins file.
How We Set Up Our KVM Hypervisor: From Bare Metal to Production-Ready VM Host
Detailed walkthrough of building a dedicated KVM/libvirt hypervisor with XFS tuning, hugepages, 10GbE tuning, and automation.
Building a Predictable KVM Infrastructure: From Chaos to Control
How to engineer a predictable KVM-based infrastructure focusing on repeatability, observability, and operational safety.