Derek Coleman & Associates Inc logoDerek Coleman & Associates Inc

Home / Support / MEAN Stack on Ubuntu 24.04 LTS

MEAN Stack on Ubuntu 24.04 LTS — Support & Quick Start

MEAN Stack on Ubuntu 24.04 LTS — The MEAN stack — MongoDB, Express, Angular, and Node.js — a complete JavaScript platform for building modern web applications. Published by Derek Coleman & Associates Inc on the Azure Marketplace, deployed in your own Azure subscription.

At a glance

Application ports3000 (Node.js app), 80 and 443 (opened in the in-image firewall); 27017 (MongoDB) is NOT opened — local only
Admin credential filesudo cat /root/.mongodb-initial-password
Sign in asMongoDB `admin` (role root, authentication database admin)
Service(s)mongod; the sample Node.js app runs under pm2 (`pm2 status`)
Configurationapp root /var/www/mean-app/; /etc/mongod.conf (authorization enabled at first boot)
Logspm2 logs; journalctl -u mongod -f; /var/log/mongodb/mongod.log
VersionMongoDB 7 + Express 4 + Angular 18 + Node.js 22 (pm2-managed sample app)
PlatformUbuntu 24.04 LTS

Quick start

  1. Deploy from the Azure Marketplace (Get It Now → Create), choosing your SSH key at the Administration step.
  2. Allow inbound SSH (22) for yourself plus the application port(s): 3000 (app) — 80/443 are also open in the in-image firewall — restrict to your own IP where possible. The in-image firewall already allows them; only the Network Security Group (NSG) keeps them closed.
  3. Browse to http://<VM-IP>:3000/ — the sample app answers; replace /var/www/mean-app/ with your application and restart it with pm2.
  4. Connect to MongoDB locally with mongosh using the generated admin password (see First login below).

First login / credentials

This image generates its admin credential on the VM at first boot — nothing is pre-set. SSH into the VM with the username + key you chose at deploy, then print the generated credential:

ssh <your-username>@<VM-IP>
sudo cat /root/.mongodb-initial-password

Sign in as MongoDB `admin` (role root, authentication database admin).

  1. Browse to http://<VM-IP>:3000/ — the sample Express app answers; no web login exists.
  2. MongoDB authentication is enabled at first boot with a generated `admin` password: mongosh -u admin -p --authenticationDatabase admin.
  3. Create your application user/database, rotate the admin password, and delete the file.

This is the MongoDB `admin` (root) password set at first boot; authorization is enabled in /etc/mongod.conf. MongoDB listens on 127.0.0.1 only.

Still stuck?

Email support@dcassociatesgroup.com (response within 1 business day) or send a message via the contact form. Include the offer name, VM size, region, and any log output — sudo journalctl -u <service> -n 100 usually tells the story.