Now I will connect to it and install the node.Js environment into it. After a few minutes, my Linux server is up and running. pem file and save it to somewhere secure. But before that, I need to create a key pair so that I can connect to this serve latter. Once I review the instance settings and they are fine for me, now I am ready to launch it. I can remove this once the configuration is done. My server is supposed to be web server, so I add HTTP/80, and to connect to the server and do some configuration work, I also enabled SSH/22. Step6, Configure the security group, which is similar like firewall on AWS side, which is a whitelist, only allowed port can pass though. Step 5, add some tags so that I can recognise this server easier, it is useful especially when you have many instances running. Step4, add a Elastic Block Storage, I just use the default setting, and I can add another EBS storage latter if necessary. Once I find it not powerful enough for your application, I can scale up or scale out easily.įor the 3rd step, I use the default settings: I’d like to start from t2.micro, which is free tier eligible. Firstly, I need to launch an EC2 instance on AWS. Of cause I can choose Windows to host Node.Js application, but I prefer to choose the free Linux, which is a good practice for me as well. Installing NodeJs environment on Mac or Windows is relatively easy, while if I need to put my Node.Js sample into production, I will have to set it up on Linux. NodeJs is very popular in web programming, you can use single language - JavaScript - to create the back end logic and the front end web page.
0 Comments
Leave a Reply. |