ejabberd learning 1

ejabberd XMPP is an implementation of the agreement, the other meaning is that everyone can learn by erlang ejabberd.

1. Installation ejabberd from source.

Refer ejabberd concise configuration . The blog includes installation, configuration, and some other modifications, you can go and see.

2.ejabberd profile

ejabberd is installed by default under the root directory. /etc/ejabberd/ejabberd.cfg is its configuration file. All options which are recorded in the form of erlang term. These options on startup, read local_config of mnesia inside the database, and then ejabberd_config.erl inside, using ets: lookup to read.

The entrance 3.ejabberd start ejabberd_app.erl / 2 following function, the structure of the entire code is open for all the services, and then monitor the network connection. Which ejabberd_listener : start_listeners () is the beginning of network monitoring.

4.ejabberd order to deal with multiple configurations, a lot of process startup, all with multi-parameter, to detailed records to know the specific contents. In terms of function calls, extensive use of Module: Fun () in this way, so really easy to configure. Between the configuration and performance, ejabberd handled very well.

 Posted please specify from: Advisa

 

Reproduced in: https: //my.oschina.net/u/191928/blog/618660

Guess you like

Origin blog.csdn.net/weixin_33829657/article/details/91987024