From 983f5db67ad2182dffc8a59f37b547ca7084f8af Mon Sep 17 00:00:00 2001 From: "yanjie.miao" Date: Mon, 8 Oct 2018 19:33:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3java=20=E5=BE=AE=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E5=8F=91=E5=B8=83=E6=97=B6=EF=BC=8C=E7=AB=AF=E5=8F=A3?= =?UTF-8?q?=E5=86=B2=E7=AA=81=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 9 +++++++-- README.md | 4 ++-- docker-compose.yml | 2 +- java-provider/src/main/resources/microservice.yaml | 6 +++--- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 247d1f3..8e9ef64 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,7 @@ -## 忽略models文件夹 -*/node_modules/ \ No newline at end of file +## 忽略models文件夹 +*/node_modules/ +.idea/workspace.xml +.idea/modules.xml +.idea/misc.xml +.idea/docker-node.iml +node-client/package-lock.json diff --git a/README.md b/README.md index 8fa3788..d8f023c 100644 --- a/README.md +++ b/README.md @@ -15,10 +15,10 @@ linux下部署注意: mesher的配置有两种方式 ## windows下运行: 第一 配置mesher - 可参考https://support.huaweicloud.com/bestpractice-servicestage/servicestage_bestpractice_0048.html + mesher下载地址:https://cse-bucket.obs.myhwclouds.com/Mesher/mesher-1.4.12-windows-amd64.zip + meshe配置可参考https://support.huaweicloud.com/bestpractice-servicestage/servicestage_bestpractice_0048.html conf/chassis.yaml的listenAddress改为注册中心的地址。 microservice.yaml中的APPLICATION_ID最好和provider的APPLICATION_ID相同。 - 运行mesher mesher-1.3.3-windows-amd64\start.bat diff --git a/docker-compose.yml b/docker-compose.yml index 472a999..9342798 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,7 +4,7 @@ services: build: ./java-provider restart: always ports: - - 8080:8080 + - 8383:8090 node-client: build: ./node-client restart: always diff --git a/java-provider/src/main/resources/microservice.yaml b/java-provider/src/main/resources/microservice.yaml index e4bee07..e63578f 100644 --- a/java-provider/src/main/resources/microservice.yaml +++ b/java-provider/src/main/resources/microservice.yaml @@ -9,10 +9,10 @@ servicecomb: chain: Provider: {} highway: - address: 0.0.0.0:7777 + address: 0.0.0.0:8191 rest: - address: 0.0.0.0:8080 + address: 0.0.0.0:8090 service: registry: - address: http://192.168.1.101:30100 + address: http://10.0.1.252:30100 autodiscovery: false \ No newline at end of file