can not create directory on mac mkdir: /data/db: Read-only file system code example Example: mkdir: /data/db: Read-only file system mkdir -p usr/local/var/mongodb/data/db