windows下用Ejabberd构架自己的聊天服务器 Ejabberd under windows with their own chat server architecture

2007年04月10日• 追风逐月 • 分类: 技术开发 April 10, 2007 Herd monthly • • Category: Technology Development

基于xmpp的聊天服务器有很多,很多还是开源的,这为我们组建自己的聊天服务器提供了方便。 Based on the chat server xmpp there are many, many or revenue, which we set up their own servers, providing a convenient chat.
根据jabber官方网站的推荐,选择了jabberd2.0和ejabberd开始搭建平台。 According to the official website of recommended jabber, and chose jabberd2.0 ejabberd started building platform.
Jabberd2.0是用c语言写的,其windows版本可以在这里下载 ,因为在搭建完毕后发现当数据量一大的时候,其s2s模块会发生异常,感觉不太稳定,也可能是windows版本的缘故,linux版本没试过,也不想花时间去查看其源代码。 Jabberd2.0 c is the language used to write, and the windows version can be downloaded here, because when the structures found after a large volume of data, the module will happen s2s abnormal feeling is not very stable, may be windows version The reason, did not try linux version, but also do not want to spend the time to read the source code. 这里就不介绍了。 Not introduced here.
Ejabberd据说是可扩展性最好的一种Jabber/XMPP服务器 ,支持分布多个服务器,并且具有容错处理,单台服务器失效不影响整个cluster运作。 Ejabberd is said to be the best scalability of a Jabber / XMPP server, support multiple servers distributed, and fault-tolerant processing, a single server failure does not affect operation of the entire cluster. 它采用一种大家都没听过的语言Erlang开发。 It uses a kind of language we have heard no Erlang development.
因为没有接触过Erlang直接下载了其,windows版本的安装包 ,才6mb多,体积不算很大。 Erlang because there is no direct contact with its download, and install windows version of the package, only 6 mb, the volume is not great.
接下来就是安装: The next step is to install:

  1. 下载windows安装包 Download windows installation package
  2. 开始安装按照提示一路next就可以了,其中要求输入用户名和密码,这个最好记住。 Follow the prompts to install the next way we can, which requires enter your user name and password, the best thing is to remember. 安装完毕后,会在桌面上生成两个快捷方式“Start ejabberd“,”Stop ejabberd”“ After installation, will generate two desktop shortcuts "Start ejabberd", "Stop ejabberd" "
  3. 配置ejabberd.cfg Configuration ejabberd.cfg
    • {acl, admin, {user, “admin”}}. 这个表示使用内联的管理用户,用户名为admin,也就是安装提示中输入的用户名 (Acl, admin, (user, "admin")). Within this that the use of the management of a user, called admin, that is, installation hints enter the user name
    • 修改% Host name: Laws% Host name:
      {hosts, [”你的地址”]}. (Hosts, [ "Your address"]).
    • 其他使用默认设置即可 Others can use the default settings
  4. 启动ejabberd服务 Ejabberd service launched
  5. 用jabber客户端,psi或Exodus等,新注册一个用户(这里注意ejabberd系统默认没有用户–包括admin,所以如果要登陆管理网站,必须用客户端注册一个新的jid) Use jabber client, or psi Exodus, a new registered users (the default system here did not pay attention to ejabberd users - including admin, so if we manage landing site, the client must be registered with a new jid)
  6. Ejabberd启动时会自动启动一个管理平台,一般地址为http://localhost:5280/admin/,您可以用刚刚申请的admin@xxx来登陆并查看服务器运行情况。 Ejabberd activated automatically activated when a management platform for the general http://localhost:5280/admin/ address, you can just use the admin @ xxx application to the server and check the landing operation. Ejabberd

至此,服务器运行正常,你可以使用常用的jabber客户端进行用户的注册发送及时消息。 Thus, the normal operation of the server, you can use common jabber client sent to the registered users timely information.

不过当我使用gtalk试图与其相联的时候却发现了问题,无法通讯,经过网上搜索,发现需要在主机的hosts文件(该文件一般位于system32/driver/etc目录下)中添加216.239.37.125 gmail.com ,这个可能是ejabberd的dns解析模块的问题,不过这样修改后发现可以和gmail正常相连了,一切ok But when I tried to use its associated gtalk when they discovered a problem, not communications, the Internet search and found in the mainframe hosts need to document (the document in general system32/driver/etc directory) Add 216.239.37.125 gmail. com, this may be the dns ejabberd Analysis module issues, but such modifications can be found and linked to the normal gmail, all ok

标签: ejabberd , Jabber , XMPP Tags: ejabberd, Jabber, XMPP
本文链接: http://chyni.com/develop/windows-ejabberd.html This paper links: http://chyni.com/develop/windows-ejabberd.html

你可能还喜欢 You may also like



发表你的意见 Express your views

追风逐月 Zhuifeng monthly

提供网络赚钱、网赚经验、网赚工具、SEO、国外主机信息 The provision of the network to make money, Wangzhuan experience Wangzhuan tool, SEO, foreign host information
Herd monthly subscription blog feed
Subscribe to google Subscribe to Battery
Subscribe to the fresh fruit Subscribe to grasp shrimp
* 更多订阅本站方式请看订阅帮助 * See More Subscribe way to help subscribers