- make conda environment
$ make env # create anaconda environment
$ conda activate <new_env> # activate anaconda environment
$ make setup # initial setup for the project
$ make add_notebook # add jupyter notebook kernel
- install mongodb
- Auth
- change to admin
$ mongo # launch mongo shell $ use admin
- make admin user:
$ use admin $ db.createUser({ user: "mongoadmin" , pwd: "mongoadmin", roles: ["userAdminAnyDatabase", "dbAdminAnyDatabase", "readWriteAnyDatabase"]})
- list all user
$ show users
- enable auth: add below on
/etc/mongod.conf
then#security: security: authorization: "enabled"
$ sudo service mongod restart
- change to admin