槐树向北

MacOS卸载jenkins-2018-07-08

2018-07-08  本文已影响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.

卸载成功!


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

猜你喜欢

热点阅读