美文网首页
Mac 环境 安装 ejabberd 2019-03-14

Mac 环境 安装 ejabberd 2019-03-14

作者: 王高强_强哥 | 来源:发表于2019-03-14 11:28 被阅读0次

    ejabberd 安装:

    http://wiki.jabbercn.org/Ejabberd2:%E5%AE%89%E8%A3%85%E5%92%8C%E6%93%8D%E4%BD%9C%E6%8C%87%E5%8D%97

    https://docs.ejabberd.im/developer/install-osx/

    Git: brew install git

    Erlang /OTP: brew install erlang

    Autoconf: brew install autoconf

    Automake: brew install automake

    Openssl: brew install openssl

    Expat: brew install expat

    Libyaml: brew install libyaml

    Libiconv: brew install libiconv

    Sqlite: brew install sqlite

    You can install everything with a single command:

    brew install git erlang autoconf automake expat openssl libyaml libiconv sqlite

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

    git clonegit@github.com:processone/ejabberd.git

    cd ejabberd 

    chmod +x autogen.sh  

    ./autogen.sh  

    ./configure --enable-odbc

    export LDFLAGS="-L/usr/local/opt/openssl/lib -L/usr/local/lib -L/usr/local/opt/expat/lib"

    export CFLAGS="-I/usr/local/opt/openssl/include/ -I/usr/local/include -I/usr/local/opt/expat/include"

    export CPPFLAGS="-I/usr/local/opt/openssl/include/ -I/usr/local/include -I/usr/local/opt/expat/include"

    ./configure --prefix=/Users/wgq/Desktop/XMPP/my-ejabberd --enable-mysql

    make && make install

    配置mysql:

    source /home/mysql.sql -p  

    tigase: jdbc:mysql://127.0.0.1:3306/tigasedb?user=root&password=&useUnicode=true&characterEncoding=UTF-8&autoCreateUser=true

    sbin/ejabberdctl start  

    sbin/ejabberdctl live  

    sbin/ejabberdctl status  

    sbin/ejabberdctl debug  

    sbin/ejabberdctl stop  

    7、注册管理员用户  

    ./ejabberdctl register admin 192.168.0.4 123456  

    ./ejabberdctlejabberd@192.168.0.4register admin 192.168.0.4 123456

    grant all privileges on *.* to root@"%" identified by ‘root' with grant option; 

    flush privileges;  

    mysql -h 192.168.0.11 -u root -p 

    mysql -h 192.168.0.11 -u root -p 

    mysql -h 172.17.200.223 -u root -p 

    ejabberd 注册相关:

    http://blog.csdn.net/yifuyou/article/details/39994251

    http://www.linuxidc.com/Linux/2013-10/90953.htm

    sudo vim ./etc/bashrc;

    chmod 777 ./etc/bashrc;

    export PATH="/usr/local/mysql:$PATH"

    export PATH=$MYSQL/bin:$PATH

    export MYSQL=/usr/local/mysql

    export PATH=$MYSQL/bin:$PATH

    tsung: 压力测试()

    http://www.th7.cn/system/mac/201511/144149.shtml

    http://hxl2009.blog.51cto.com/779549/1224816/

    相关文章

      网友评论

          本文标题:Mac 环境 安装 ejabberd 2019-03-14

          本文链接:https://www.haomeiwen.com/subject/yakqmqtx.html