exception in initAndListen: NonExistentPath: Data directory /data/db code example
Example: nonexistentpath data directory /data/db not found
# Create the folder
sudo mkdir -p /data/db/
# Set the ownership of the folder
sudo chown `id -u` /data/db
# Create the folder
sudo mkdir -p /data/db/
# Set the ownership of the folder
sudo chown `id -u` /data/db