Setting up replica set

when i do this
vagrant@m103:~$ mkdir -p /var/mongodb/db/node1
iam getting error like this
mkdir: cannot create directory ‘/var/mongodb/db’: Permission denied

/var is a special directory and requires special permissions. Have a look at the sudo command.

Please also edit your post and link it to the course.

Thank you for your reply
i resolved it

Remember to…