Golang千万级IM服务端,支持集群和水平扩展,万人群消息秒达。
Step 1
下载单机版分支代码(注:该分支代码已停止维护)
git clone -b standalone git@github.com:sevtin/lark.git
Step 2
创建日志文件目录
/var/log/lark
Step 3
创建docker容器数据卷目录
/Volumes/data/lark
Step 4
修改host文件
lark/configs/docker/host.txt
Step 5
执行容器启动脚本
./lark/build/run/docker-up.sh
Step 6
http://127.0.0.1:9001/identity/account/new-account
Minio Create Service Account
Access Key: SEv0QKlwqQ36M1eV
Secret Key: sZVZR1RD8Pcy73NANvk6vbMmoDsGSSOk
Create Buckets And Change Access Policy
["documents","photos","videos"]
Access Policy: Public
upload files to photos
./lark/assets/images/avatar/06b73ea9-0c61-4ea6-b3e5-f89d89d53add.jpeg
./lark/assets/images/avatar/6b546cc7-5e4a-4d31-8017-1e5853f88a1c.jpeg
./lark/assets/images/avatar/b11883ba-f3d7-4164-a593-700c177c37c8.jpeg
mkdir -p /private/tmp/lark/photos
Step 7
通过Apache Flink同步数据到Elasticsearch
Step 8
执行build脚本
./lark/scripts/build.sh
Step 9
执行项目启动脚本
./lark/build/run/run_all.sh