mongooseim xmpp 服务器docker 安装试用
备注:
预备环境docker xmpp client
1. 启动mongooseim
docker run -d -t -h mongooseim-1 --name mongooseim-1 -p 5222:5222 mongooseim/mongooseim:latest
2. 添加测试账户
docker exec -i -t mongooseim-1 /usr/lib/mongooseim/bin/mongooseimctl register $USER $XMPP_HOST $PASSWORD
比如,我创建了两个账户:
docker exec -i -t mongooseim-1 /usr/lib/mongooseim/bin/mongooseimctl register dalong localhost dalong
docker exec -i -t mongooseim-1 /usr/lib/mongooseim/bin/mongooseimctl register demo localhost demo
备注:
$USER - a username
$XMPP_HOST - the XMPP host served by MongooseIM - by default it's localhost
$PASSWORD - password used for authentication
3. 下载xmpp client 测试
参考下载地址:
https://xmpp.org/software/clients.html
我下载了 spark 以及swift
如下图,具体的操作就就比较简单,主要是登陆的时候对于证书认证的配置取消,参考下图:
![](https://images2018.cnblogs.com/blog/562987/201805/562987-20180507135138508-325348507.png)
注意:需要取消证书认证的登陆模式
spark 如下:
![](https://images2018.cnblogs.com/blog/562987/201805/562987-20180507135139885-1494723701.png)
swift 如下:
![](https://images2018.cnblogs.com/blog/562987/201805/562987-20180507135140539-1696456060.png)
![](https://images2018.cnblogs.com/blog/562987/201805/562987-20180507135141025-1612329298.png)
4. mongooseim组件&&常见部署模式
![](https://images2018.cnblogs.com/blog/562987/201805/562987-20180507135141781-420573088.png)
![](https://images2018.cnblogs.com/blog/562987/201805/562987-20180507135143182-1036757189.png)
![](https://images2018.cnblogs.com/blog/562987/201805/562987-20180507135145207-1450758133.png)
![](https://images2018.cnblogs.com/blog/562987/201805/562987-20180507135146833-318320072.png)
5. 参考资料
https://mongooseim.readthedocs.io/en/latest/
https://xmpp.org/software/clients.html