Change Jenkins port on macOS

前端 未结 7 2098
南笙
南笙 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

    it looks like the default way is:

    #add the default parameters - this will edit /Library/Preferences/org.jenkins-ci.plist

    sudo defaults write /Library/Preferences/org.jenkins-ci httpPort 7070

    #stop

    sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist

    #start

    sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist

提交回复
热议问题