First, download and install OpenFire
1. Download the latest OpenFire installation files
Official Download site: Http://www.igniterealtime.org/downloads/index.jsp#openfire
OpenFire is the server, there is also a spark, this is an XMPP protocol communication chat CS im software, it can be chat conversations through OpenFire.
2, click Install, and perform the default action
3. Start OpenFire Service
In the other System Preferences, click OpenFire Preferences
After startup, click the Open Admin Console button to automatically open the local Web configuration page in the browser http://localhost:9090/setup/index.jsp
Second, configure the OpenFire server
1. Set the language, select Chinese
2. Host Settings
Set the host's Access IP address
Note: The domain cannot be a machine name, otherwise it will be the following error:
HTTP error:500 internal_server_error
Local domain, to be set to 127.0.0.1
3. Database Settings
If you want to set up an external database (recommended, for example: MySQL), select Standard database connection
4. Setting up a database connection
(1) database-driven selection: MySQL, if you have installed MySQL (specific installation method can refer to the previous article: install MySQL on mac)
(2) JDBC driver, unchanged by default
Com.mysql.jdbc.Driver
(3) Database URL:
The form is as follows:
Jdbc:mysql:// Your host name: port number/database name
This is set to
Jdbc:mysql://Localhost:3306/openfire
where hostname [Host-name] is changed to localhost,
where the database name [Database-name] is changed to OpenFire---SQL has been created
Note: If a database named OpenFire already exists, the following error will be reported, the connection configuration is unsuccessful
The openfire database schema does not appear to be installed. Follow the installation Guide to fix this error.
(4) User name and password
The username and password here is the account used to access the MySQL database: root, and the root password to install the MySQL settings
5. Feature Settings
If you do not intend to use LDAP, leave the default setting
6. Set the OpenFire server Administrator's account and password
Can fill in an admin mailbox, enter the password to be set
Complete Registration
7. Login to the management console
The default administrator account is "admin", the default administrator password "admin", if the above set a new password, then the administrator password is the new password
If you want to remove the default admin account and customize it, you need to do the following
(1) in the terminal, login to the specific database (OpenFire)
Mysql-u root-p OpenFire
Then enter the root password of the database
(2) Delete the admin account in the table "Ofuser"
Delete from Ofuser where Username='admin';
(3) Create a custom administrator (user name: Xiaodao, Password: 123)
INSERT into Ofuser (username, Plainpassword, Encryptedpassword, name, email, creationdate, modificationdate) VALUES ('Xiaodao','123 ','123','Administrator','[Email protected]','0','0');
NOTE: If you reset the user name, you must restart the OpenFire server
8. Background Control Interface
Third, uninstall OpenFire
1. Stop the Service
In other settings in System Preferences, open OpenFire preferences
Click the Stop OpenFire button to stop the service
2. deleting files
Open Terminal, enter the following command
sudo RM -rf/library/preferencepanes/openfire.prefpane
sudo RM -rf/usr/local/openfire
sudo RM -rf/library/launchdaemons/org.jivesoftware.openfire.plist
After the first command, you need to enter the native administrator password
Ps:http://www.cnblogs.com/xiaodao/archive/2013/04/05/3000554.html
Installation and configuration of OpenFire for XMPP chat---Mac OS