Skip to content

Instantly share code, notes, and snippets.

@pixind
Created November 28, 2013 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pixind/7694732 to your computer and use it in GitHub Desktop.
Save pixind/7694732 to your computer and use it in GitHub Desktop.
Automated script 4 nginx base install
#!/usr/bin/env bash
apt-get -y update
apt-get install nginx
cat > /etc/nginx/sites-enabled/default << EOL
server {
listen 80 default_server;
server_name _;
root /usr/share/nginx/www/;
}
EOL
mv /etc/monit/conf.d/apache.conf /etc/monit/conf.d/apache.bak
service monit restart
service apache2 stop
service nginx start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment