简体   繁体   English

如何完全卸载Mac上的Jenkins

[英]How to uninstall Jenkins on mac completely

I installed Jenkins with brew on mac. 我用mac安装了Jenkins和brew。 But it occurs some problem, I want to re-install it. 但它发生了一些问题,我想重新安装它。 Previously, at the first time I access http://localhost:8080 , the page guides you to install some plugins and need you to input the password. 以前,在我第一次访问http:// localhost:8080时 ,该页面会指导您安装一些插件并需要您输入密码。 But when I use 'brew uninstall jenkins' command and install again, the page will not show. 但是,当我使用'brew uninstall jenkins'命令并再次安装时,页面将不会显示。 I don't remember the previous default admin passsword. 我不记得以前的默认管理员密码。 So I can't access the jenkins now. 所以我现在无法访问jenkins。 I delete the homebrew cache as well, it not worked. 我也删除了自制缓存,它没有用。 Is there any solutions to uninstall Jenkins completely? 有没有完全卸载Jenkins的解决方案? I just want to start from the beginning of the installation. 我只想从安装开始就开始。 Thanks. 谢谢。

In terminal, write and execute 在终端中,写入和执行

$/Library/Application\ Support/Jenkins/Uninstall.command

Note If you installed it with sudo , then use this: 注意如果您使用sudo安装它,请使用以下命令

$sudo /Library/Application\ Support/Jenkins/Uninstall.command

Then follow the instructions. 然后按照说明操作。

To uninstall Jenkins service from your Mac OS X computer, execute uninstall script from terminal: 要从Mac OS X计算机卸载Jenkins服务,请从终端执行卸载脚本:

sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
/Library/Application Support/Jenkins/Uninstall.command

https://wiki.jenkins.io/display/JENKINS/Thanks+for+using+OSX+Installer https://wiki.jenkins.io/display/JENKINS/Thanks+for+using+OSX+Installer

删除包含配置的主目录中隐藏的.jenkins目录。

Removing the .jenkins file is actually an answer, depending how Jenkins was installed. 删除.jenkins文件实际上是一个答案,取决于Jenkins的安装方式。 For example, the homebrew installation does create instance-specific work area in $HOME/.jenkins 例如,自制软件安装确实在$ HOME / .jenkins中创建特定于实例的工作区

If you have the jenkins instance already running, go to $JENKINS_BASE_URL/configure and check the value of ' Home directory ' - that is the place where all user-specific data is stored, like the jobs. 如果您已经运行了jenkins实例,请转到$ JENKINS_BASE_URL / configure并检查“ 主目录 ”的值 - 这是存储所有用户特定数据的位置,例如作业。

PS: BTW - can't get away from SO stupidity. PS:BTW - 无法摆脱SO的愚蠢。 This is a comment to the answer by Ayobi, but don't have reputation to comment. 这是Ayobi对答案的评论,但没有评论的声誉。

I installed Jenkins as pkg from jenkins.io. 我从jenkins.io安装了Jenkins作为pkg There was some issue and I wanted to delete it. 有一些问题,我想删除它。 I couldn't find Jenkins folder or Uninstall Command in Library , so this is what I did, 我在Library找不到Jenkins文件夹或卸载命令,所以这就是我做的,

  1. Go to /Applications --> Delete the Jenkins folder 转到/Applications - >删除Jenkins文件夹
  2. Delete /Users/Shared/Jenkins 删除/Users/Shared/Jenkins
  3. Delete Jenkins ( there will be a standard user with no name username for the first time when jenkins is installed ) from "Users & Groups" 从“用户和组”中删除Jenkins( 安装jenkins时将首次使用no name用户名的standard用户

After this I re-installed Jenkins and it seem to work. 在此之后,我重新安装了Jenkins,它似乎工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM