By default jenkins runs on port 8080 this can be changed by editing /etc/sysconfig/jenkins file
Lets check from curl after changing jenkins port is changed to 7070 from standard 8080.
$curl -I https://localhost:7070 HTTP/1.1 200 OK X-Content-Type-Options: nosniff Cache-Control: no-cache,no-store,must-revalidate X-Hudson-Theme: default Content-Type: text/html;charset=UTF-8 Set-Cookie: JSESSIONID.30d90edc=gnomlxlm6kzl1lts499bpda29;Path=/;HttpOnly Expires: Thu, 01 Jan 1970 00:00:00 GMT X-Hudson: 1.395 X-Jenkins: 1.651.3 X-Jenkins-Session: 7850c522 X-Hudson-CLI-Port: 39461 X-Jenkins-CLI-Port: 39461 X-Jenkins-CLI2-Port: 39461 X-Frame-Options: sameorigin X-Instance-Identity: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAod4N9XWlYUWZDbqcLjRrn0cAb1TahvYSOTUtc3r3HXMakA9ZjshtrLARp7Med3v3D/PoVpwobDW9xkk4GyG/AUxeeidxSTYIMsp+VLxE2HOv+jaVqTIRjaUsWPsWQ72hAZGBJqBCbEvv+nyuoBMrLPjwQCq1XINm3SE2T6WrtD3b3po9i1oC9edHMph+qv9Ki2i28+BLPAMUFAzAIJAl1TNTEXHmIELyeXkoZacdpxLOu8e+fKYm7/zfPM3+sypKR3GCg6hKLUPBA/MpWTlBwe6xuw6CPTqrUefxLmeuUN4mU6CNc7RWfTv7sRPXjI60k79psyCwC+lkRKdU5Hpw1QIDAQAB X-SSH-Endpoint: localhost:38691 Content-Length: 9138 Server: Jetty(8.1.17.v20150415)
$ grep JENKINS_PORT= /etc/sysconfig/jenkins JENKINS_PORT="8080" $systemctl restart jenkins $firewall-cmd --add-port=7070/tcp --permanent success $ firewall-cmd --reload success
$ grep JENKINS_PORT= /etc/sysconfig/jenkins JENKINS_PORT="8080" $systemctl restart jenkins $firewall-cmd --add-port=7070/tcp --permanent success $ firewall-cmd --reload success