Change Jenkins port on macOS

前端 未结 7 2120
南笙
南笙 2020-12-23 02:11

I was wondering how one could change Jenkins\' default port 8080. Using linux or windows, this is simply done with the configuration file. But the Mac config file of Jenkins

7条回答
  •  余生分开走
    2020-12-23 02:38

    This worked for me for changing port to 7070 or other.

    sudo defaults write /Library/Preferences/org.jenkins-ci httpPort 7070
    
    sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
    
    sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist
    

    More info about this

提交回复
热议问题