基於NGINX配置集羣

1.圖解
基於NGINX配置集羣

2.開啓nginx upstream 模塊
http://nginx.org/en/docs/
http
{
upstream daili {
server 118.89.245.175:80;
server 118.89.236.154:80;
}
}

server
{
location / {
proxy_pass http://daili;
proxy_read_timeout 300;
proxy_connect_timeout 300;
proxy_redirect off;

        proxy_set_header   X-Forwarded-Proto $scheme;
        proxy_set_header   Host              $http_host;
        proxy_set_header   X-Real-IP         $remote_addr;
  }

}

3.開啓數據庫主從
http://blog.51cto.com/benchmarking/1886779

4.圖片同步
http://blog.51cto.com/benchmarking/2112126

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章