作者 GuoLei Sun

更新 README,增加本地客户端启动

@@ -116,3 +116,8 @@ fabric.properties @@ -116,3 +116,8 @@ fabric.properties
116 .idea/httpRequests 116 .idea/httpRequests
117 .idea/ 117 .idea/
118 *.iml 118 *.iml
  119 +
  120 +*.project
  121 +*.settings/
  122 +*.classpath
  123 +*.factorypath
@@ -135,7 +135,20 @@ java -jar cim-client-1.0.0-SNAPSHOT.jar --server.port=8084 --cim.user.id=唯一 @@ -135,7 +135,20 @@ java -jar cim-client-1.0.0-SNAPSHOT.jar --server.port=8084 --cim.user.id=唯一
135 135
136 如上图,启动两个客户端可以互相通信即可。 136 如上图,启动两个客户端可以互相通信即可。
137 137
  138 +### 本地启动客户端
138 139
  140 +```shell
  141 +# 1. 修改 /cim/cim-client/src/main/resources/application.properties
  142 +# 注释掉生产模拟,打开本地模拟
  143 +# 2. 本地 redis 中添加
  144 +127.0.0.1:6379> SET cim-account:1545574841528 zhangsan
  145 +OK
  146 +
  147 +# 启动本地客户端
  148 +cp /cim/cim-client/target/cim-client-1.0.0-SNAPSHOT.jar /xx/work/route0/
  149 +cd /xx/work/route0/
  150 +java -jar cim-client-1.0.0-SNAPSHOT.jar --server.port=8084
  151 +```
139 152
140 ## 客户端内置命令 153 ## 客户端内置命令
141 154
@@ -34,7 +34,7 @@ cim.server.online.user.url=http://45.78.28.220:8083/onlineUser @@ -34,7 +34,7 @@ cim.server.online.user.url=http://45.78.28.220:8083/onlineUser
34 #cim.server.route.request.url=http://localhost:8083/login 34 #cim.server.route.request.url=http://localhost:8083/login
35 # 35 #
36 ## 在线用户 36 ## 在线用户
37 -#cim.server.online.user=http://localhost:8083/onlineUser 37 +#cim.server.online.user.url=http://localhost:8083/onlineUser
38 38
39 # 客户端唯一ID 39 # 客户端唯一ID
40 cim.user.id=1545574841528 40 cim.user.id=1545574841528