Configure Ejabberd chat server to use PostgreSQL
文章目录
Configure Ejabberd chat server to use PostgreSQL
In order to make data persistent with in any application, we can link it to a PostgreSQL relational database.
- To change the default to use a postgres database we first need to create a new postgresql database on the server
|
|
- Create the tables using the supplied script
|
|
- Add a user for the database
|
|
- Configure ODBC options in ejabberd.cfg:
|
|
- Add _odbc to modules you wish to use the odbc database, and store messages into archive table
|
|
- Under authentication comment out internal authentication:
|
|
Register a new user and appear online using PSI client or similar application
Add a user to allowed admin access control list in ejabberd.cfg
|
|
Confirm registered user and status in web admin:
http://serverIP:5280/admin/Connect to database using PgAdmin to view tables with data and confirm ejabberd is now using PostgreSQL
Reference
Getting started with ejabberd
[Initial setup and install of PostgreSQL Database]
(http://stackoverflow.com/questions/9753710/setup-ejabberd-with-postgresql)
文章作者 Hustbill
上次更新 2016-04-04