升级到High sierra后Jenkins不启动

如果没有jenkins用户,需要用jenkins用户登录一下。如果登录界面也没有,需要自己手动创建一个。

  1. Stop the jenkins server:
    sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist

  2. Add execute permissions to org.jenkins-ci.plist:
    sudo chmod +x /Library/LaunchDaemons/org.jenkins-ci.plist

  3. Set jenkins as the owner of /var/log/jenkins:
    sudo chown jenkins /var/log/jenkins

  4. Start Jenkins:
    sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist

此步骤可能需要执行:
sudo chown -R jenkins /Users/Shared/Jenkins

有可能会出现git访问权限问题,需要设置ssh中文件权限:
sudo chown jenkins *
sudo chmod 600 *

你可能感兴趣的:(升级到High sierra后Jenkins不启动)