![]() ![]() While connected to the new AWS EC2 instance in the terminal window, run the following command:įor instructions on how to securely connect to the remote MongoDB server from your local machine using Mongo Shell or MongoDB Compass see Connect to remote MongoDB on AWS EC2 simply and securely via SSH tunnel.įollow these steps to setup the Node.js API on the server and configure NGINX to enable access to it. The below command executes a script to automatically setup and configure a production ready MEAN Stack web server on Ubuntu that includes Node.js, MongoDB, PM2, NGINX and UFW.įor more details about how the script works see Setup Node.js + MongoDB Production Server on Ubuntu. Setup Web Server with Node.js + MongoDB + NGINX If you're using Windows you can connect to your instance via SSH using the PuTTY SSH client, for instructions see Connect Using PuTTY in the AWS docs.
0 Comments
Leave a Reply. |