4/1/2023 0 Comments Connect mongodb compass to awsThe below command executes a script to automatically setup and configure a production ready MERN 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 NOTE: 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. ![]() Enter yes to the prompt "Are you sure you want to continue connecting (yes/no)?" to add the url to your list of known hosts.Copy the "Public DNS (IPv4)" property from the instance description tab in the AWS Console, then connect to the instance from the terminal window with the command ssh -i e.g.chmod 400 ~/Downloads/my-aws-key.pem, the key must not be publicly viewable for SSH to work. Open a terminal window and update the permissions of the private key file with the command chmod 400 e.g. ![]() Once the EC2 instance reaches a running state you can connect to it via SSH using the private key downloaded in the previous step. Click "Launch Instances", then scroll to the bottom of the page and click "View Instances" to see details of the new Ubuntu EC2 instance that is launching."my-aws-key") and click "Download Key Pair" to download the private key, you will use this to connect to the server via SSH. Select "Create a new key pair", enter a name for the key pair (e.g.Configure Security Group - Add a new rule to allow HTTP traffic then click "Review and Launch".Choose Instance Type - Select the "t2.micro" (Free tier eligible) instance type and click "Configure Security Group" in the top menu.Choose AMI - Check the "Free tier only" checkbox, enter "Ubuntu" in search box and press enter, then select the "Ubuntu Server 18.04" Amazon Machine Image (AMI).If you don't have an account yet click the "Create a Free Account" button and follow the prompts. ![]() Sign into the AWS Management Console at.Configure NGINX to serve API and front-endīefore doing anything we need a server that we can work on, follow these steps to spin up a new Ubuntu 18.04 server instance on AWS EC2.Setup server with Node.js + MongoDB + NGINX. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |