Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Server Presentations series

Server Presentations series

Avatar for Peter Dang

Peter Dang

August 09, 2013

Other Decks in Programming

Transcript

  1. SERVER  after this presentation, you will know:  How

    to use ssh protocol to connect and interact with ubuntu system.  How to update and install important packages for ubuntu server.  How to deploy web application to server use capistrano.
  2. SSH  SSH stands for Secure Shell is network protocol

    to use to establish the secure connecting.  Syntax  ssh user@host  connect to server  Ex: ssh [email protected]  scp [[user@]from-host:]source-file [[user@]to-host:][destination-file]  remote copy  Ex: scp text.txt [email protected]:/home/user/
  3. NGINX  Nginx is a free open source web server

    written by Igor Sysoev and public launch in 2004  Why do you should use nginx ?  Load balancing  Cache control for static contents (js, .css, .gif, .html ...)  Handle alot of request and fast  The ability to integrate efficiently with a variety of applications
  4. NGINX  Balancer (have 4 worker processes) 1 2 4

    3 1 2 3 4 requests Worker processes(nginx) 5 6 8 7 round robin algorithm 1 3 ready queue
  5. NGINX internet Send request Nginx (balancer) listen 80 Unicorn (web

    server) response request response I . The simple request when use nginx balancer and unicorn web server
  6. NGINX internet Nginx ws ws ws db ws II. complex

    request request Forward request Backend server Prevent direct request to backend server SSL (secure sockets layer)