简体   繁体   English

如何卸载手动安装的MongoDB

[英]How to uninstall MongoDB that was manually installed

I installed MongoDB manually on the MongoDB website. 我在MongoDB网站上手动安装了MongoDB。 https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/ https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/

I followed the instructions under "Install MongoDB Community Edition Manually". 我按照“手动安装MongoDB Community Edition”下的说明进行操作。

How do I uninstall MongoDB completely? 如何完全卸载MongoDB? I have searched around and only found how to uninstall using Homebrew. 我四处搜寻,仅发现如何使用Homebrew进行卸载。 I did not install MongoDB using Homebrew. 我没有使用Homebrew安装MongoDB。

Any help is greatly appreciated. 任何帮助是极大的赞赏。

Just follow the manual install steps in reverse order: 只需按照相反的顺序执行手动安装步骤即可

Other files that might have been created depending on how you ran MongoDB: 根据您运行MongoDB的方式可能已经创建了其他文件:

  • there may be old log files to remove if you specified a --logpath outside your data directory 如果在数据目录之外指定了--logpath则可能会删除旧的日志文件

  • there may be a launchctl script and configuration file to remove if you configured mongod to run as a service 如果您将mongod配置为作为服务运行,则可能需要删除launchctl脚本和配置文件

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

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