有些小伙伴不熟悉Jenkins, 在mac上安裝,會選擇pkg 安裝包, 安裝後又想卸載,苦於卸載不幹凈,今天給到一個命令即可搞定. 對應qq群號:616961231打開終端輸入下麵命令'/Library/Application Support/Jenkins/Uninstall.command' ...
有些小伙伴不熟悉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 內核同樣適用~
今日推薦閱讀文章精選推薦
咨詢工作加微信
掃描二維碼
歡迎自薦和推薦, 需要的微信推送簡歷!
請猛戳下麵二維碼瞭解更多