How to change domain name? Ejabberd

Source: Internet
Author: User
Tags change domain name

 

Error

Changing the domain name in the configuration file and in ejabberd's startup command do not work.

Explanation

Because ejabberd uses mnesia as its internal database, and because this system stores the Erlang node name into the backup files, you cannot simply change the domain name in the configuration file and in ejabberd's startup command. if you want to migrate from one host to another you have to 'convert' the backups from the old node name to the new one and then restore these converted backups.

 

 

1. Backup database on the old hos

Ejabberdctl backup old. Backup

2. Modify erlang_node in ejabberdctl. cfg to the new node name.

Ejabberdctl start (the node of ejabberd started is the new name, and an empty mnesia database named after the new node name will be created)

3. Convert the backup to new node name

Ejabberdctl mnesia_change_nodename $ oldnode $ newnode $ old. Backup new. Backup

4. Install the backup file as a fallback:

Ejabberdctl install_fallback new. Backup

5. Stop ejabberd

Ejabberdctl stop

6. Start ejabberd

Ejabberdctl start

7. Check that the information of the old database is available

 

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.