ejabberd服务端开发笔记

这篇笔记详细记录了ejabberd服务端的安装配置过程,包括遇到的erl_driver.h缺失的问题及解决方案。此外,还介绍了如何使用xmpp protocal,以及通过smack客户端进行注册功能的实现,并探讨了ejabberd模块测试的方法,特别是验证码的获取设置。ejabberd的相关参考资料稀缺,这篇笔记为开发者提供了实用的帮助。
摘要由CSDN通过智能技术生成

网上一搜一大陀ejabberd安装配置的,扩展开发的资料少之又少,写个笔记记录一下。


xmpp protocal: http://xmpp.org/xmpp-protocols/xmpp-extensions/


安装与配置:

http://www.process-one.net/docs/ejabberd/guide_en.html


默认配置文件在 /etc/ejabberd/ejabberd.cfg

1


git clone git://github.com/processone/ejabberd.git ejabberd
cd ejabberd
git checkout -b 2.1.x origin/2.1.x


2

 sudo apt-cache search libyaml

sudo apt-get install libyaml-dev


3. cd ejabberd/src

./configure

make

报错:erl_driver.h: No such file or directoryERLANG_CFLAGS=


vi Makefile发现ERLANG_CFLAGS和ERLANG_LIBS所指目录不对,居然使用了我编译erlang时的源文件而没有使用/usr/local/...

解决方法也很简单,把编译erlang用的源文件(otp-src-R16B01)删除,再次./configure即可。因为这样configure的时候就不会找到


4.

sudo make install


5.

The files and directories created are, by default:

/etc/ejabberd/
Configuration directory:
ejabberd.yml
ejabberd configuration file
ejabberdctl.cfg
Configuration file of the administration script
inetrc
Network DNS configuration file
/lib/ejabberd/
ebin/
Erlang binary files (*.beam)
include/
Erlang header files (*.hrl)
priv/
Additional files required at runtime
bin/
Executable programs
lib/
Binary system libraries (*.so)
msgs/
Translation files (*.msgs)
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值