opemim安装部署

dandan2年前程序开发2744

前置准备:

(1)安装golang环境(官网下linux包到服务器解压,设置环境变量到bin目录即可),并设置go代理:go env -w GOPROXY=https://proxy.golang.com.cn,direct 

(2)安装docker 和 docker-compose (比如参考:https://mzwjc.com/?id=7  ,最新docker安装后自带compose)


安装部署:

参考文档:https://doc.rentsoft.cn/guides/gettingStarted/imSourceCodeDeployment


1、下载源码要指定分支:git clone --branch release-v3.3 https://github.com/openimsdk/open-im-server.git

2、上传到服务器上,比如放到/opt中,解压: unzip open-im-server-release-v3.3.zip 

3、因为没梯子,修改项目docker-compose的openim-web镜像,换阿里云的那个,如果不需要web的demo,可以全注释掉(web的demo需要看文档启动chat服务)

4、make init && docker compose up -d

5、编译:./scripts/build-all-service.sh

6、 启动:./scripts/start-all.sh


如果要停止:./scripts/stop-all.sh


需要开放相应端口,如果是开发测试直接关防火墙:

sudo systemctl stop firewalld
sudo systemctl disable firewalld


相关文章

Docker使用篇

镜像:image容器:container运行镜像(如果本地有则会运行本地,本地没有会去下载镜像仓库)docker run 镜像运行镜像内系统的命令窗口(如果要退出,输入exit)d...

wsl2安装docker+dify+xinference

1、wsl2安装ubuntu,这里指定版本安装一个新环境 wsl --install -d Ubuntu-22.042、安装完的ubuntu是在c盘的,放到其他...

Docker安装篇(CentOS7.6)

7.6环境自带gcc和gcc-c++,不用再装安装yum-utilsyum install -y yum-utils设置阿里云镜像仓库yum-config-manager...

camunda使用

1、 拉取镜像docker pull camunda/camunda-bpm-platform:7.17.02、配置并启动docker run -d ...

k8s学习

k3s学习环境安装,准备3台虚拟机,centos7.6以上操作每台机子都要执行,操作完成后,修改主机名hostnamectl set-hostname k8s-master...

mac m1 中go使用kafka

当前docker-comose:version: '3' services:   Etcd:     con...

发表评论    

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。