Last active
August 29, 2015 14:11
-
-
Save tarcisio/1782a6454c7bdc009de8 to your computer and use it in GitHub Desktop.
instalando infra no google cloud
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
sudo apt-get update -y | |
sudo apt-get upgrade -y | |
sudo apt-get install build-essential supervisor locales -y | |
sudo locale-gen pt_BR.utf8 | |
sudo cp /usr/share/zoneinfo/America/Sao_Paulo /etc/localtime | |
date |
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
sudo apt-get update -y | |
sudo apt-get upgrade -y | |
sudo apt-get install munin -y | |
sudo mkdir /usr/local/nginx/html/munin | |
sudo chmod -R 777 /usr/local/nginx/html/munin | |
sudo cp /etc/munin/munin.conf /etc/munin/munin.conf.def | |
sudo sh -c "echo > /etc/munin/munin.conf" | |
sudo sh -c "echo 'htmldir /usr/local/nginx/html/munin/' >> /etc/munin/munin.conf" | |
sudo sh -c "echo >> /etc/munin/munin.conf" | |
sudo sh -c "cat /etc/munin/munin.conf.def >> /etc/munin/munin.conf" |
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
daemon off; | |
worker_processes 1; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include mime.types; | |
default_type application/octet-stream; | |
sendfile on; | |
keepalive_timeout 65; | |
server { | |
listen 80; | |
server_name localhost; | |
location / { | |
root html; | |
index index.html index.htm; | |
} | |
error_page 500 502 503 504 /50x.html; | |
location = /50x.html { | |
root html; | |
} | |
} | |
} |
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
sudo apt-get update -y | |
sudo apt-get upgrade -y | |
sudo apt-get install libpcre3-dev libssl-dev -y | |
wget http://nginx.org/download/nginx-1.7.8.tar.gz | |
tar xzf nginx-1.7.8.tar.gz | |
cd nginx-1.7.8 | |
./configure --with-http_ssl_module --with-http_stub_status_module | |
make | |
sudo make install | |
sudo rm /usr/local/nginx/conf/fastcgi* | |
sudo rm -rf /usr/local/nginx/conf/scgi_params* | |
sudo rm -rf /usr/local/nginx/conf/uwsgi_params* | |
sudo rm -rf /usr/local/nginx/conf/mime.types.default | |
sudo rm -rf /usr/local/nginx/conf/nginx.conf.default |
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
[program:nginx] | |
process_name=%(program_name)s | |
command = /usr/local/nginx/sbin/nginx | |
user = root | |
autostart = true | |
autorestart=true |
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
sudo apt-get update -y | |
sudo apt-get upgrade -y | |
sudo apt-get install libxml2-dev libssl-dev libcurl4-openssl-dev libjpeg-dev libpng12-dev libmcrypt-dev -y | |
wget http://us1.php.net/get/php-5.6.3.tar.gz/from/this/mirror | |
tar xzf mirror | |
cd php-5.6.3 | |
./configure \ | |
--enable-mbstring \ | |
--with-curl \ | |
--with-mcrypt \ | |
--with-zlib \ | |
--with-gd \ | |
--enable-pcntl \ | |
--with-mhash \ | |
--enable-zip \ | |
--with-openssl \ | |
--enable-opcache \ | |
--enable-fpm | |
make | |
sudo make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment