![]() ![]() Also helped you to basic uses of NVM for Amazon Linux systems. Response.end("Node webserver running\n") Ĭonsole.log("Node.This tutorial will help you to install NVM on your Amazon Linux machine. Var server = http.createServer(function (request, response) ) Create a file called server.js and edit the contents of the file : nano server.js.Again, let's use /tmp as our working directory. ![]() This this prurpose we'll configure and runs a simple webserver. The best method to test Node.js is actually run an application. Sudo ln -s /usr/local/bin/npm /usr/bin/npm Sudo ln -s /usr/local/lib/node /usr/lib/node If by any chance, your are in the root environment and the previous command returns " -bash: node: command not found", you can fix this by creating the following symbolic links : sudo ln -s /usr/local/bin/node /usr/bin/node You can verify afterwards if the installation was successful by checking the versions of node and npm : this may take a while, especially the compiling part. Unpack and cleanup : tar -xvf node-v4.6.0.tar.gz & rm node-v4.6.0.tar.gz.Version is v4.6.0 (which includes npm 2.15.9) Download the Node.js source code, select the recommended LTS version via the Node.js download page and copy the URL of the "Source Code" -package : curl -O.Install required packages : sudo yum install -y gcc gcc-c++ make openssl-develįor the next steps, use /tmp as the working directory.Make sure our server has the latest packages :.Once the EC2 instance is up-and-running, connect to your server via ssh The following will guide you through the process of installing Node.js on an AWS EC2 instance running Amazon Linux AMI 2016.09 - Release Notesįor this process I'll be using a t2.micro EC2 instance running ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |