[Jenkins] 局域网无法根据 ip 访问 jenkins

配置

  • brew install jenkins 使用brew 安装的 jenkins

解决方案

修改 homebrew.mxcl.jenkins.plisthttpListenAddress0.0.0.0




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


路径:

  • ~/Library/LaunchAgents/homebrew.mxcl.jenkins.plist
  • /usr/local/Cellar/jenkins/版本号/homebrew.mxcl.jenkins.plist

重启

brew services stop jenkins
Stopping `jenkins`... (might take a while)
==> Successfully stopped `jenkins` (label: homebrew.mxcl.jenkins)
brew services start jenkins
==> Successfully started `jenkins` (label: homebrew.mxcl.jenkins)
  • Updating Homebrew’s “httpListenAddress” Default for Jenkins

  • jenkins-not-accessible-through-lan

你可能感兴趣的:([Jenkins] 局域网无法根据 ip 访问 jenkins)