Skip to content

Instantly share code, notes, and snippets.

@kaanuki
Forked from gsklee/_.sh
Created August 31, 2019 23:23
Show Gist options
  • Save kaanuki/d8d85e114e4b3805d48d1c65af883f8c to your computer and use it in GitHub Desktop.
Save kaanuki/d8d85e114e4b3805d48d1c65af883f8c to your computer and use it in GitHub Desktop.
# 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