Openfire: Modify Domain value
Unlike Tigase, after Openfire is installed, its configuration attributes are not written into the XML file, but basically stored in the database table.
The data table where the configuration property is located is an ofProperty table.
Mysql> select * from ofProperty;
+ -------------------------------------------- + -------------------------------------------------------------------------------- +
| Name | propValue |
+ -------------------------------------------- + -------------------------------------------------------------------------------- +
| AdminConsole. port | 9090 |
| AdminConsole. securePort | 9091 |
| ConnectionProvider. className | org. jivesoftware. database. DefaultConnectionProvider |
| Database. defaultProvider. connectionTimeout | 1.0 |
| Database. defaultProvider. driver | com. mysql. jdbc. Driver |
| Database. defaultProvider. maxConnections | 300 |
| Database. defaultProvider. minConnections | 10 |
| Database. defaultProvider. password | XXXXXXXXXXXXXXXXXXXXXX |
| Database. defaultProvider. serverURL | jdbc: mysql: // XXX. XXX: 3306/openfiredb? RewriteBatchedStatements = true |
| Database. defaultProvider. testAfterUse | false |
| Database. defaultProvider. testBeforeUse | false |
| Database. defaultProvider. testSQL | select 1 |
| Database. defaultProvider. username | XXXXXXXXXXXXXXXXXXXXXX |
| Locale | zh_CN |
| Locale. timeZone | Asia/Taipei |
| PasswordKey | XXXXXXXXXXXXXXXXXXXXXX |
| Provider. admin. className | org. jivesoftware. openfire. admin. DefaultAdminProvider |
| Provider. auth. className | org. jivesoftware. openfire. auth. DefaultAuthProvider |
| Provider. group. className | org. jivesoftware. openfire. group. DefaultGroupProvider |
| Provider. lockout. className | org. jivesoftware. openfire. lockout. DefaultLockOutProvider |
| Provider. securityAudit. className | org. jivesoftware. openfire. security. DefaultSecurityAuditProvider |
| Provider. user. className | org. jivesoftware. openfire. user. DefaultUserProvider |
| Provider. vcard. className | org. jivesoftware. openfire. vcard. DefaultVCardProvider |
| Setup | true |
| Update. lastCheck | 1441615953135 |
| Xmpp. auth. anonymous | true |
| Xmpp. domain | Ubuntu |
| Xmpp. session. conflict-limit | 0 |
| Xmpp. socket. ssl. active | true |
+ -------------------------------------------- + -------------------------------------------------------------------------------- +
29 rows in set (0.00 sec)
It can be seen that for domain configuration, see xmpp. domain.
Modify its value.
Mysql> update ofProperty set propValue = 'xxx. com' where name = 'xmpp. domain ';
However, to make the modified domain take effect, restart the Openfire server.
# Cd/opt/openfire/
#./Bin/openfire restart
Shutting down openfire
Stopped.
Restarting openfire
In this case, you can use the XMPP client for verification. OK!
-------------------------------------- Split line --------------------------------------
Detailed installation process of Openfire in CentOS
Openfire server configuration notes based on Jabber/XMPP protocol in CentOS 5.4
Install Openfire on Ubuntu 12.04
Openfire solves Chinese garbled characters After MySQL database is used
Load Balancing for Openfire clusters using Nginx
-------------------------------------- Split line --------------------------------------
This article permanently updates the link address: