Tuesday, May 22, 2018

Migrating Openfire server

1. Install new Openfire server on the new server.

2. Start the new Openfire once to ensure it can run

/etc/init.d/openfire start

3. Access the setup page to ensure it can run properly

http://x.x.x.x:9090

4. Shutdown both old and new Openfire server

/etc/init.d/openfire stop

5. Copy over the 3 files/folders from the old server to the new server

scp /opt/openfire/conf/openfire.xml x.x.x.x:/opt/openfire/conf
scp -r /opt/openfire/embedded-db x.x.x.x:/opt/openfire/
scp -r /opt/openfire/resources/security x.x.x.x:/opt/openfire/resources

6. On the new server, make sure the copied files/folders have the correct permissions. If the new server files/folders owners are different from the old one, make sure the permission on the new server is consistent with the owner on the new server by comparing with the permission structure on the old server

eg. chown uuuu:gggg embedded-db

7. Start Openfire on the new server.

8. Run the following command if you face errors.

tail -f /opt/openfire/logs/error.log

No comments: