作者 GuoLei Sun

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

... ... @@ -116,3 +116,8 @@ fabric.properties
.idea/httpRequests
.idea/
*.iml
*.project
*.settings/
*.classpath
*.factorypath
\ No newline at end of file
... ...
... ... @@ -135,7 +135,20 @@ java -jar cim-client-1.0.0-SNAPSHOT.jar --server.port=8084 --cim.user.id=唯一
如上图,启动两个客户端可以互相通信即可。
### 本地启动客户端
```shell
# 1. 修改 /cim/cim-client/src/main/resources/application.properties
# 注释掉生产模拟,打开本地模拟
# 2. 本地 redis 中添加
127.0.0.1:6379> SET cim-account:1545574841528 zhangsan
OK
# 启动本地客户端
cp /cim/cim-client/target/cim-client-1.0.0-SNAPSHOT.jar /xx/work/route0/
cd /xx/work/route0/
java -jar cim-client-1.0.0-SNAPSHOT.jar --server.port=8084
```
## 客户端内置命令
... ...
... ... @@ -34,7 +34,7 @@ cim.server.online.user.url=http://45.78.28.220:8083/onlineUser
#cim.server.route.request.url=http://localhost:8083/login
#
## 在线用户
#cim.server.online.user=http://localhost:8083/onlineUser
#cim.server.online.user.url=http://localhost:8083/onlineUser
# 客户端唯一ID
cim.user.id=1545574841528
... ...