网上一搜一大陀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
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)