Openfire: Modify Domain value

Source: Internet
Author: User
Tags vcard

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:

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.