Jenkins server is not accessible by host name (ip address)

后端 未结 5 1587
终归单人心
终归单人心 2020-12-08 04:57

I setup jenkins on my Mac OS X with homebrew and it works just fine via http://localhost:8080 or http://127.0.0.1:8080 I couldn\'t access jenkins i

5条回答
  •  广开言路
    2020-12-08 05:40

    It turned out that launch agent was configured to listen only 127.0.0.1 (or localhost). To fixed that edit jenkins agent's plist:

    nano /Users/admin/Library/LaunchAgents/homebrew.mxcl.jenkins.plist
    

    and modify httpListenAddress to 0.0.0.0 instead of 127.0.0.1

    
    
      
        Label
        homebrew.mxcl.jenkins
        ProgramArguments
        
          /usr/bin/java
          -Dmail.smtp.starttls.enable=true
          -jar
          /usr/local/opt/jenkins/libexec/jenkins.war
          --httpListenAddress=0.0.0.0
          --httpPort=8080
        
        RunAtLoad
        
      
    
    

提交回复
热议问题