Unable to Connect to Jenkins Server (Amazon Linux AMI)

后端 未结 4 1207
自闭症患者
自闭症患者 2021-01-06 03:43

When I had installed Jenkins on Amazon Linux AMI following steps mentioned in http://bhargavamin.com/how-to-do/install-jenkins-on-amazon-linux-aws/

After installation

4条回答
  •  广开言路
    2021-01-06 04:23

    The problem here is pretty simple, if you do curl http://127.0.0.1:8080 on your host machine, you should get a message stating:

    Authentication required
    
    

    This means that jenkins has anonymous priviledges which is not allowing any connection.

    To solve this issue, you will have to do two changes:

    1. Add Jenkins user to root group: sudo usermod -a -G root jenkins

    2. Make Jenkins listen to all external IPs by editing file /etc/sysconfig/jenkins and changing the JENKINS_LISTEN_ADDRESS="0.0.0.0"

    Once this is done, restart the jenkins server and then try to install plugins for jenkins.

提交回复
热议问题