centos下源码安装ejabberd16.04

1、下载源码包

     两种方法获取源码:

  • ejabberd发布版在网站ProcessOne   

        地址:https://www.process-one.net/en/ejabberd/downloads

  • 获取最新的源码在github上 

        git clone git://github.com/processone/ejabberd.git ejabberd

        cd ejabberd

        ./autogen.sh

2、编译ejabberd需要的依赖包

  • GNU Make
  • GCC
  • Libexpat 1.95 or higher
  • Libyaml 0.1.4 or higher
  • Erlang/OTP 17.1 or higher
  • OpenSSL 1.0.0 or higher, for STARTTLS, SASL and SSL encryption.
  • Zlib 1.2.3 or higher, for Stream Compression support (XEP-0138). Optional.
  • PAM library. Optional. For Pluggable Authentication Modules (PAM). See section pam.
  • GNU Iconv 1.8 or higher, for the IRC Transport (mod_irc). Optional. Not needed on systems with GNU Libc. See section mod_irc.
  • ImageMagick’s Convert program. Optional. For CAPTCHA challenges. See section captcha.   
3、安装依赖包
  • 安装Libexpat
        yum install expat-devel
  • 安装Libyaml 
        下载:https://pkgs.org/centos-6/centos-x86_64/libyaml-0.1.3-4.el6_6.x86_64.rpm/download/
         rpm -i libyaml-0.1.3-4.el6_6.x86_64.rpm(或者 yum install libyaml-devel)
         ejabberdctl live启动正常
  • 其他依赖包安装略
4、安装ejabberd
  • ./configure --enable-mysql
  • make
  • make install
5、安装成功后创建的目录如下
  • /etc/ejabberd/: 配置文件路径
       ejabberd.yml: ejabberd configuration file
       ejabberdctl.cfg: Configuration file of the administration script
       inetrc: Network DNS configuration file for Erlang
  • /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)
  • /sbin/ejabberdctl: 管理脚本 
  • /share/doc/ejabberd/: ejabberd文档
  • /var/lib/ejabberd/: Spool directory:
       .erlang.cookie: Erlang cookie file (see section cookie)
       acl.DCD, ...: Mnesia database spool files (*.DCD, *.DCL, *.DAT)
  • /var/log/ejabberd/: Log 目录
       ejabberd.log: ejabberd service log
       erlang.log: Erlang/OTP system log

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

yongche_shi

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值