Detailed steps for installing the Jabberd2 server in Ubuntu12.04

Source: Internet
Author: User


Install Jabberd2

Run the following command on the terminal to install Jabberd2:

Sudo apt-get install jabberd2

Configuration

Modify the/etc/jabberd2/sm. xml file

1. Modify the server address (row 6th ):

6 <id> localhost. localdomain </id>
Replace localhost. localdomain with your server address.

For example:

6 <id> 192.168.1.200 </id>

2. Modify the database information and find the <mysql> module under <storage> (lines 70th to 112nd)

70 <storage>
71 <! -- Dynamic storage modules path -->
72 <path>/usr/lib/jabberd2 </path>
73
74 <! -- By default, we use the MySQL driver for all storage -->
75 <driver> mysql </driver>
76
······
101 <! -- MySQL driver configuration -->
102 <mysql>
103 <! -- Database server host and port -->
104 105 <port> 3306 </port>
106
107 <! -- Database name -->
108 <dbname> jabberd2 </dbname>
109
110 <! -- Database username and password -->
111 <user> jabberd2 </user>
112 <pass> secret </pass>

Replace <dbname>, <user>, and <pass> with your own database name, database username, and database password.

For example:

107 <! -- Database name -->
108 <dbname> MY_DB_NAME </dbname>
109
110 <! -- Database username and password -->
111 <user> MY_DB_USERNAME </user>
112 <pass> MY_DB_PASSWORD </pass>

Modify the/etc/jabberd2/c2s. xml file

1. Modify the server address and find the following in the <local> module: (row 125th)

125 <id register-enable = 'true'> localhost. localdomain </id>

Replace it with your own server address:

125 <id register-enable = 'true'> 192.168.1.200 </id>

2. Modify the database information, in the <mysql> module of <authreg> (lines 320th to 383)

320 <authreg>
321 <! -- Dynamic authreg modules path -->
322 <path>/usr/lib/jabberd2 </path>
323
324 <! -- Backend module to use -->
325 <module> mysql </module>
······
372 <! -- MySQL module configuration -->
373 <mysql>
374 <! -- Database server host and port -->
375 376 <port> 3306 </port>
377
378 <! -- Database name -->
379 <dbname> jabberd2 </dbname>
380
381 <! -- Database username and password -->
382 <user> jabberd2 </user>
383 <pass> secret </pass>

Replace <dbname>, <user>, and <pass> with your own database name, database username, and database password.

For example:

107 <! -- Database name -->
108 <dbname> MY_DB_NAME </dbname>
109
110 <! -- Database username and password -->
111 <user> MY_DB_USERNAME </user>
112 <pass> MY_DB_PASSWORD </pass>
Restart the Jabberd2 service
Restart the Jabberd2 server to activate the latest configuration.

Sudo/etc/init. d/jabberd2 restart
Or
Sudo service jabberd2 restart

You need to use the Jabber client to connect to the server, such as Message (Mac) and Pidgin (Windows)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.