How to stop Jenkins installed on Mac Snow Leopard?

后端 未结 8 1742
感动是毒
感动是毒 2020-12-12 09:54

I have installed Jenkins executable on OSX, but now I want to stop it running. Whenever I kill it, no matter how, it just restarts immediately.

I\'ve tried using the

8条回答
  •  南方客
    南方客 (楼主)
    2020-12-12 10:10

    There are two things going on.

    (1) will your system start Jenkins when it comes up. Controlled by load and unload.

    (2) Is Jenkins currently running or not. Controlled by start and stop.

    Jenkins unload stops it and it won't load again on boot up

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

    stop it without unloading it ( will load again when you reboot)

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

    load it - starts it and will restart whenever your system boots

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

    restarts it, doesn't effect loaded or unloaded status

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

提交回复
热议问题