-
Notifications
You must be signed in to change notification settings - Fork 4
Node++ Hello World – Getting Started on Linux
The steps below are simplified. If you prefer full step-by-step tutorial, it's available here:
Putting your web application online
sudo yum install gcc-c++ # RH
sudo apt install g++ # UbuntuFor other distributions see Cheat Sheets.
wget https://nodepp.org/nodepp_3.2.0.tar.gzmkdir npp_hello
tar xpzf nodepp_3.2.0.tar.gz -C npp_hellocd npp_hello/src
./m./tYou should see something like this:
To stop, press Ctrl+C.
For a normal, 'no-hangup mode', there are scripts in bin directory: nppstart and nppstop. Make sure you set $NPP_DIR in your environment, adding to your ~/.bashrc or ~/.bash_profile:
export NPP_DIR=/path/to/npp_helloTo access ports 80 and 443 you need to be root.
For your own good, some cloud vendors (AWS being one of them) create instances with a very restricted security policy with only SSH port (22) open. You may need to edit that policy and add HTTP port you want to use, before AWS lets your browser in.
On some systems you may need to install zlib developer pack:
sudo yum install zlib-devel # RH
sudo apt install libz-dev # Ubuntu