Created
November 28, 2013 16:41
-
-
Save pixind/7694732 to your computer and use it in GitHub Desktop.
Automated script 4 nginx base install
This file contains 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
#!/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