Browse Source

⬆️ 更新适配 Nacos2 支持长链接特性

test
smallchill 4 years ago
parent
commit
1aa10bfac0
  1. 16
      blade-gateway/pom.xml
  2. 16
      blade-ops/blade-admin/pom.xml
  3. 2
      script/docker/app/deploy.sh
  4. 4
      script/docker/app/docker-compose.yml

16
blade-gateway/pom.xml

@ -80,10 +80,26 @@
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
<exclusions>
<exclusion>
<groupId>com.alibaba.nacos</groupId>
<artifactId>nacos-client</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
<exclusions>
<exclusion>
<groupId>com.alibaba.nacos</groupId>
<artifactId>nacos-client</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.alibaba.nacos</groupId>
<artifactId>nacos-client</artifactId>
</dependency>
</dependencies>

16
blade-ops/blade-admin/pom.xml

@ -59,10 +59,26 @@
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
<exclusions>
<exclusion>
<groupId>com.alibaba.nacos</groupId>
<artifactId>nacos-client</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
<exclusions>
<exclusion>
<groupId>com.alibaba.nacos</groupId>
<artifactId>nacos-client</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.alibaba.nacos</groupId>
<artifactId>nacos-client</artifactId>
</dependency>
<!--Admin-Server-->
<dependency>

2
script/docker/app/deploy.sh

@ -14,6 +14,8 @@ port(){
firewall-cmd --add-port=8000/tcp --permanent
#nacos
firewall-cmd --add-port=8848/tcp --permanent
firewall-cmd --add-port=9848/tcp --permanent
firewall-cmd --add-port=9849/tcp --permanent
#sentinel
firewall-cmd --add-port=8858/tcp --permanent
#grafana

4
script/docker/app/docker-compose.yml

@ -6,7 +6,7 @@ services:
####################################################################################################
nacos:
image: nacos/nacos-server:1.3.2
image: nacos/nacos-server:2.0.0
hostname: "nacos-standalone"
environment:
- MODE=standalone
@ -16,6 +16,8 @@ services:
- /docker/nacos/init.d/custom.properties:/home/nacos/init.d/custom.properties
ports:
- 8848:8848
- 9848:9848
- 9849:9849
networks:
blade_net:
ipv4_address: 172.30.0.48

Loading…
Cancel
Save