mkdir: /data/db: read-only file system mac code example Example: mkdir: /data/db: Read-only file system mkdir -p usr/local/var/mongodb/data/db