opemim安装部署

dandan2年前程序开发3030

前置准备:

(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


相关文章

centos后台运行程序

通过远程shell工具连上服务器,运行程序后,如果关闭工具,进程也会被结束。所以采用systemctl方式运行1、创建运行用户adduser newUserName2、编辑service脚本...

宝塔nginx配置允许各种文件的下载

location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|pdf|doc|docx|xls|xlsx|rar|zip|gz|7z|ppt|pptx|mp3|...

通过frp进行内网穿透

因为ngrok会定义刷新域名,有点限制,如果没有服务器域名,用他合适,如果有自己的服务器、域名,则用frp:按照https://blog.csdn.net/mirage003/article/deta...

Docker使用篇

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

wsl2安装docker+dify+xinference

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

git操作

将本地现有项目放到远端上:添加远程仓库: git remote add [远端名称] [远端地址], 名称一般默认都是origin,地址就是项目地址git remote add&n...

发表评论    

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