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 注冊相關(guān):
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: 壓力測試()