-
-
Save kaanuki/d8d85e114e4b3805d48d1c65af883f8c to your computer and use it in GitHub Desktop.
Node.js + Express Setup on Linux: The Best Practice @ http://gsklee.tumblr.com/post/47097805306/node-js-express-setup-on-linux-the-best-practice
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install Node Version Manager | |
# https://github.com/creationix/nvm | |
$ curl https://raw.github.com/creationix/nvm/master/install.sh | sh | |
$ nvm install 0.10.3 | |
$ nvm alias default 0.10.3 | |
# Install Express | |
# https://github.com/visionmedia/express | |
$ npm install -g express | |
# (Optional) Open Port 3000 | |
# Note that you may have to insert the rule with a specific rule number for the new rule to take precedence. | |
$ iptables -I INPUT -p tcp --dport 3000 -j ACCEPT -m comment --comment "Express Port" | |
$ service iptables save | |
$ service iptables restart | |
# Install Forever | |
# https://github.com/nodejitsu/forever | |
$ npm install -g forever |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment