server:192.168.159.128
node-1:192.168.159.130
node-2:192.168.159.133
1.安装依赖包
yum install wget git openssl openssl-devel gcc pcre pcre-devel jemalloc jemalloc-devel
2.下载安装包
http { include mime.types; default_type application/octet-stream; #access_log "pipe:rollback logs/access_log interval=1d baknum=7 maxsize=2G" main; sendfile on; keepalive_timeout 65; vhost_traffic_status_zone; include vhost/upstream.conf;加载初始持久配置 server { listen 80; server_name localhost; #charset koi8-r; #access_log logs/host.access.log main; #access_log "pipe:rollback logs/host.access_log interval=1d baknum=7 maxsize=2G" main; location / { set $web "t1"; proxy_set_header Host $host; proxy_pass http://$web; } #error_page 404 /404.html; # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } } server { listen 8081; location / { dyups_interface; access_log logs/dumps.log; allow 127.0.0.1; deny all; } } }
原文:https://www.cnblogs.com/thanos-ryan/p/14440195.html