Skip to content

Installs Nginx on Ubuntu over SSH. Also starts Nginx and configures upstart to start and monitor Nginx on startup.

Notifications You must be signed in to change notification settings

max-mapper/install-nginx-on-ubuntu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

install-nginx-on-ubuntu

NPM

Installs Nginx on Ubuntu over SSH. Also starts Nginx and configures upstart to start and monitor Nginx on startup.

Uses the Nginx PPA

Tested w/ Ubuntu 13.04 x64, but should work with other modern Ubuntus. YMMV. Took about 17 seconds to install and start nginx on a fresh Ubuntu droplet on Digital Ocean

CLI usage

npm install install-nginx-on-ubuntu -g
install-nginx-on-ubuntu root@coolsite.com

assumptions:

  • you have your keys setup correctly so that passwordless login works with the SSH user + server passed in
  • you are logging in as a user who is either root or can sudo without entering a password (goal of this module is to be fully automated)

JS usage

var installScript = require('install-nginx-on-ubuntu')

installScript is a string containing the shell commands to install nginx, newline separated. Execute it somewhere!

see also

About

Installs Nginx on Ubuntu over SSH. Also starts Nginx and configures upstart to start and monitor Nginx on startup.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published