With the default configuration, Jenkins is listening to port 8080:
$ ss -tulpn | grep 8080
tcp LISTEN 0 50 *:8080 *:* users:(("java",pid=3052,fd=115)
However, I want to change that and have Jenkins listen to port 80.
When I go into
/etc/sysconfig/jenkins
and change JENKINS_PORT
to JENKINS_PORT="80"
and restart sudo service jenkins restart
, I get:
$ ss -tulpn | grep 8080
$ ss -tulpn | grep 80
$ curl localhost:8080
curl: (7) Failed to connect to localhost port 8080 after 0 ms: Connection refused
$ curl localhost:80
curl: (7) Failed to connect to localhost port 80 after 0 ms: Connection refused
How can I let Jenkins listen to port 80?
Asked by Hans
(115 rep)
Dec 24, 2021, 02:24 PM
Last activity: Apr 12, 2024, 09:25 AM
Last activity: Apr 12, 2024, 09:25 AM