The first way: Install jenkins by installing the package (the local way)
- Set the port: sudo defaults write /Library/Preferences/org.jenkins-ci httpPort 7070
- Start Jenkins: sudo launchctl load -w /Library/LaunchDaemons/org.jenkins-ci.plist
- 重启Jenkins: sudo launchctl unload -w /Library/LaunchDaemons/org.jenkins-ci.plist
The second method: run by putting the war package into tomcat (this method is recommended, it is convenient and fast, try it later)