Install MongoDB Community Edition on Ubuntu.If you wish to reinstall MongoDB on Linux, follow the links below: To check if MongoDB is successfully uninstalled, type: service mongod status Remove the data directories, MongoDB database(s), and log files: sudo rm -r /var/log/mongodb /var/lib/mongodb Stop MongoDB process: sudo service mongod stopĬompletely remove the installed MongoDB packages: sudo apt-get purge mongodb-org* Type the following commands one by one to uninstall MongoDB: To get sudo access, log in as an admin and add yourself to the sudo group. You must have sudo access, i.e., a superuser. All of this should be done from the terminal. To uninstall MongoDB from Linux, you have to stop the daemon process, and remove the MongoDB applications, configuration files, data files, and log files. How to uninstall MongoDB from Ubuntu Linux
0 Comments
Leave a Reply. |