centos7-asible:20.20.43.0
安装nginx
yum install -y nginx
配置
upstream demo-dev{ server 20.20.45.177:5000; server 20.20.41.213:5000; } server{ server_name dev.nops.icu; listen 80; access_log /var/log/test.nops.icu_access.log; error_log /var/log/test.nops.icu_error.log error; location / { proxy_pass http://demo-dev/; } }
启动服务