![]() Start the server of MongoDB and execute commands in the terminal mongod。 sudo mongod Note: If the database directory is not /data/db, it can be specified by -dbpath. The data storage directory of the MongoDB database is by default /data/db, But because the MongoDB compressed package cannot automatically create a directory, you need to create it manually, and execute the command with system administrator privileges in the terminal mkdir. ![]() Since MongoDB does not have a shortcut like MySQL's dmg installation package, the operation of the database is executed by inputting command files in the terminal, so shortening the folder name of MongoDB can effectively improve the efficiency of command input. Put the uncompressed files of the tgz compressed package into the directory /usr/local, Which is not visible in Finder by default /usrDirectory, you can open Finder and press shift + command + genter /usr/localThen you can see this hidden directory.Īnd rename the folder to mongodb. Log in to the official website to download the MongoDB compressed package.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |