Ejabberd, an open source framework for IM for Erlang, has been looking for a time to study:
1. Download Ejabberd installation package
wget Http://www.process-one.net/downloads/ejabberd/2.1.13/ejabberd-2.1.13-linux-x86_64-installer.run
2. After the download is complete, add permissions to the installation package, or you will not be able to install
[Email protected] xmpp]# chmod +x ejabberd-2.1.13-linux-x86_64-installer.run
3, Installation Ejabberd
[Email protected] xmpp]#/ejabberd-2.1.13-linux-x86_64-installer.run Language selectionplease Select the Installation language[1] dutch-nederlands[2] english-english[3] french-français[4] german-deutsch[5] Russian-рус СКИЙ[6] Simplified Chinese-English [7] spanish-español .....
A few notes: A, set the domain when you enter the IP address of the computer B, the best choice of English language
4. Start after installation is complete
[[email protected] xmpp]# Cd/opt[[email protected] opt]# CD Ejabberd-2.1.13/[[email protected] ejabberd-2.1.13]# CD bin[[ Email protected] bin]#/start[[email protected] bin]#./statusthe node [email protected] is started with Status:startede Jabberd 2.1.13 is running on that node
The service has been started. Can be managed using the Web.
Web address: HTTP://IP Address: 5280/admin
5. mysql Configuration
[[email protected] bin]# mysql-u root-penter Password: Create user and Modify permissions mysql:>create database ejabberdmysql:>grant all PR Ivileges on ejabberd.* to [e-mail protected] ' 127.0.0.1′identified by ' ejabberd '; mysql:>grant all privileges on Ejabberd . * to [email protected] ' localhost ' identified by ' ejabberd '; CREATE DATABASE mysql:>source/usr/local/ejabberd/lib/ Ejabberd-2.1.3/priv/odbc/mysql.sql;
6. XMPP Service Configuration
Modify the Ejabberd.cfg file as follows: Comment out: {auth_method, internal}. Uncomment: {Auth_method, ODBC}. Uncomment and set the database name and password: {odbc_server, { MySQL, "localhost", "ejabberd", "Ejabberd", "Ejabberd"}. Modify the module as follows: Both add _odbc{mod_last_odbc, []}, {MOD_OFFLINE_ODBC, []}, {mod_privacy_odbc, []}, { MOD_PRIVATE_ODBC, []}, {mod_pubsub_odbc, [% requires mod_caps ... {MOD_ROSTER_ODBC, []}, {MOD_VCARD_ODBC, []},
Restart Service:
Cd/bin under
./start command
7. Registered Administrator user
./ejabberdctl Register Admin 192.168.200.239 123456
Ejabberd Common Configuration Description:
1. Database Configuration
Ejabberd default installation After the use of the own database, you can configure the use of other databases such as MySQL, SQL Server, PostgreSQL and other databases, MySQL database configuration See "Linux under Ejabberd installation Configuration", Other database installation configurations are similar to this.
2. Host Configuration
{hosts, ["192.168.1.1"]}. Modify the IP of the host to
3. Administrator Configuration
{ACL, admin, {user, ' rkimadmin ', ' 192.168.1.1 '}}.
Increase the administrator to write in this format alone.
4. Broadcast rights
{access, announce, [{Allow, admin}]}. Only administrators can broadcast
{access, announce, [{Allow, all}]}. Everyone can launch a broadcast.
5. Group configuration
{MOD_MUC,
[
{Access, MUC},
{access_create, muc_create},
{access_persistent, muc_create},
{access_admin, muc_admin},
{max_users, 1000}, maximum group limit
{history_size,500}, group maximum history message record bar number
{max_user_conferences, 500} maximum number of individual users can join a group
]
},
Specific to participate in Ejabberd official website.
Transferred from: http://www.cnblogs.com/silent2012/p/3610747.html
Ejabberd Frame construction under Linux