配置 Nginx 

 Nacos 1.2.1 集群搭建(三) Nginx 配置 集群

 

 

 

 可以把.conf 文件拉到本地,配置好再传上去

 #gzip  on;

    upstream cluster{
        server 192.168.0.113:8848;
        server 192.168.0.110:8848;
        server 192.168.0.109:8848;
    }
    
    
    server {
        listen       8848;
        server_name  localhost;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

        location / {
            #root   html;
            #index  index.html index.htm;
            proxy_pass http://cluster;
        }

改动如下

Nacos 1.2.1 集群搭建(三) Nginx 配置 集群

 

 

[root@localhost sbin]# pwd
/usr/local/nginx/sbin
[root@localhost sbin]# ./nginx -c /usr/local/nginx/conf/nginx.conf

Nacos 1.2.1 集群搭建(三) Nginx 配置 集群

 

 

Nacos 1.2.1 集群搭建(三) Nginx 配置 集群

 

 网页可以正常访问,再添加一个配置信息,验证一下,能否成功保存到数据库

Nacos 1.2.1 集群搭建(三) Nginx 配置 集群

 

 

 

 Nacos 1.2.1 集群搭建(三) Nginx 配置 集群

 

相关文章:

  • 2021-06-15
  • 2021-09-23
  • 2022-12-23
  • 2021-11-13
  • 2021-08-29
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-11
  • 2022-12-23
  • 2021-05-21
  • 2021-06-20
  • 2022-12-23
相关资源
相似解决方案