御风而翔  
个人云笔记

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/;
        }
}

启动服务

 

posted on 2024-04-14 15:26  个人记录  阅读(13)  评论(0编辑  收藏  举报