Change Jenkins port on macOS

前端 未结 7 2086
南笙
南笙 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:35

    I have installed Jenkins on my Mac OS High Sierra using Brew.

    Please follow below steps:

    1. You have to change the port to below file:

      /usr/local/Cellar/jenkins/2.x.x/homebrew.mxcl.jenkins.plist

    2. Assign any free port like 7070 or any number you want.[If you have static IP then you can give port 80(HTTP)]

      --httpPort=7070

    3. You also need to restart the Jenkins Server. using below brew service commands:

      $ brew services stop jenkins

      $ brew services start jenkins

    That's all.!

提交回复
热议问题