有些小伙伴不熟悉Jenkins, 在mac上安装,会选择pkg 安装包, 安装后又想卸载,苦于卸载不干净,今天给到一个命令即可搞定.
对应qq群号:616961231
打开终端输入下面命令
'/Library/Application Support/Jenkins/Uninstall.command'
louie-mac:~ louiezhou$ '/Library/Application Support/Jenkins/Uninstall.command'
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 dscl . -delete /Users/jenkins
delete: Invalid Path
<dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)
+ sudo dscl . -delete /Groups/jenkins
+ pkgutil --pkgs
+ grep 'org.jenkins-ci.'
+ xargs -n 1 sudo pkgutil --forget
Forgot package 'org.jenkins-ci.documentation.pkg' on '/'.
Forgot package 'org.jenkins-ci.jenkins.osx.pkg' on '/'.
Forgot package 'org.jenkins-ci.jenkins1557.postflight.pkg' on '/'.
Forgot package 'org.jenkins-ci.launchd-jenkins.pkg' on '/'.
Forgot package 'org.jenkins-ci.support.pkg' on '/'.
+ set +x
Jenkins has been uninstalled.
louie-mac:~ louiezhou$
然后在访问:http://localhost:8080 无法访问就对了
Linux 内核同样适用~
今日推荐阅读文章精选推荐
咨询工作加微信
扫描二维码
欢迎自荐和推荐, 需要的微信推送简历!
请猛戳下面二维码了解更多