美文网首页槐树向北
MacOS卸载jenkins-2018-07-08

MacOS卸载jenkins-2018-07-08

作者: 槐树向北 | 来源:发表于2018-07-08 09:00 被阅读0次

在终端中输入以下命令:

'/Library/Application Support/Jenkins/Uninstall.command'

然后终端出现以下log:

Jenkins uninstallation script

The following commands are executed using sudo, so you need to be logged
in as an administrator. Please provide your password when prompted.

+ sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
Password:
+ sudo rm /Library/LaunchDaemons/org.jenkins-ci.plist
+ sudo rm -rf /Applications/Jenkins '/Library/Application Support/Jenkins' /Library/Documentation/Jenkins
+ sudo rm -rf /Users/Shared/Jenkins
+ sudo rm -rf /var/log/jenkins
+ sudo rm -f /etc/newsyslog.d/jenkins.conf
+ sudo dscl . -delete /Users/jenkins
delete: Invalid Path
<dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)
+ sudo dscl . -delete /Groups/jenkins
delete: Invalid Path
<dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)
+ pkgutil --pkgs
+ grep 'org\.jenkins-ci\.'
+ xargs -n 1 sudo pkgutil --forget
Forgot package 'org.jenkins-ci.support.pkg' on '/'.
Forgot package 'org.jenkins-ci.jenkins21073.postflight.pkg' on '/'.
Forgot package 'org.jenkins-ci.documentation.pkg' on '/'.
Forgot package 'org.jenkins-ci.launchd-jenkins.pkg' on '/'.
Forgot package 'org.jenkins-ci.jenkins.osx.pkg' on '/'.
+ set +x

Jenkins has been uninstalled.

卸载成功!


整个卸载过程输入一次命令就行

相关文章

网友评论

    本文标题:MacOS卸载jenkins-2018-07-08

    本文链接:https://www.haomeiwen.com/subject/tsnnuftx.html