Change Jenkins port on macOS

前端 未结 7 2085
南笙
南笙 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:27

    Just write the following command in the terminal:

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

    That should resolve it.

提交回复
热议问题