Linux下ejabberd安装配置


Linux下ejabberd安装配置

一、下载Ejabberd安装包html

wget  http://www.process-one.net/downloads/ejabberd/2.1.13/ejabberd-2.1.13-linux-x86_64-installer.run


也能够在直接在官网上下载  node

ejabberd-15.11-linux-x86_64-installer.runmysql


二、下载完成后,给安装包加权限,不然没法安装linux

[root@localhost xmpp]# chmod +x ejabberd-2.1.13-linux-x86_64-installer.run

三、安装Ejabberdsql

复制代码

[root@localhost xmpp]# ./ejabberd-2.1.13-linux-x86_64-installer.run 
Language Selection

Please select the installation language
[1] Dutch - Nederlands
[2] English - English
[3] French - Français
[4] German - Deutsch
[5] Russian - Русский
[6] Simplified Chinese - 简体中文
[7] Spanish - Español
.....

复制代码

几个注意的地方:a、设置域的时候输入本机的IP地址 b、语言最好选择英语数据库

四、安装完成后启动spa

复制代码

[root@localhost xmpp]# cd /opt
[root@localhost opt]# cd ejabberd-2.1.13/[root@localhost ejabberd-2.1.13]# cd bin
[root@localhost bin]# ./start
[root@localhost bin]# ./status
The node ejabberd@localhost is started with status: started
ejabberd 2.1.13 is running in that node

复制代码

服务已经启动。能够用WEB来管理。.net

WEB地址:http://ip地址:5280/admincode

五、Mysql配置htm

复制代码

[root@localhost bin]# mysql -u root -p
Enter password: 

建立用户和修改权限

mysql:>create database ejabberd
mysql:>grant all privileges on ejabberd.* to ejabberd@’127.0.0.1′ IDENTIFIED BY ’ejabberd’;
mysql:>grant all privileges on ejabberd.* to ejabberd@’localhost’ IDENTIFIED BY ’ejabberd’;

建立数据库

mysql:>source /usr/local/ejabberd/lib/ejabberd-2.1.3/priv/odbc/mysql.sql;

复制代码

六、XMPP服务配置

复制代码

, , , %

复制代码

七、注册管理员用户

./ejabberdctl register admin 192.168.200.239 123456
相关文章
相关标签/搜索