如何阻止安装在 Mac Snow Leopard 上的 Jenkins? [英] How to stop Jenkins installed on Mac Snow Leopard?

查看:31
本文介绍了如何阻止安装在 Mac Snow Leopard 上的 Jenkins?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在 OSX 上安装了 Jenkins 可执行文件,但现在我想停止它运行.每当我杀死它时,无论如何它都会立即重新启动.

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.

我尝试在 jenkins url 上使用 exit 命令:

I've tried using the exit command on the jenkins url:

http://localhost:8080/exit

它要求我发布命令,我做了,然后服务器按要求关闭.然后它重新启动.

which asks me to post the command, which I do, and the server shuts down as requested. But then it restarts.

我已经尝试使用 ps 搜索进程 ID,并强制终止它 (kill -9 pid),服务器会根据要求立即关闭.然后它重新启动.

I've tried searching for the process id using ps, and force killing it (kill -9 pid), and the server shuts down immediately, as requested. But then it restarts.

我尝试通过 gui 关闭它,但不幸的是似乎没有办法做到这一点.

I've tried shutting it down via the gui, but unfortunately there doesn't seem to be a way to do that.

某处一定有一个守护进程,这使得这是一个普遍的 OSX 问题.

There must be a daemon somewhere, making this a general OSX question.

推荐答案

只需使用launchctl卸载plist

Just unload the plist using launchctl

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

这篇关于如何阻止安装在 Mac Snow Leopard 上的 Jenkins?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆