Server-side configuration
Download the latest OpenFire Currently the latest version is 3.6 .
#wget http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire3.6.0a-1.i386.rpm
installation OpenFire
#rpm –IVH./openfire-3.6.0a-1.i386.rpm
Configuration database
#mysql Admin Create openfire// Create OpenFire Database
#mysql
Mysql>grant all on OpenFire. *[email protected] identified by "123456";//create OpenFire user with password 123456, where hostname must host name for native IP
Mysql>quit
Import OpenFire Need for MySQL Table
#cat/opt/openfire/resources/database/openfire_mysql.sql|mysqlopenfire
Note: Because the experiment MySQL uses 4.1.20, strings larger than 255 bytes are not supported, so the varchar (1024) in the Openfire_mysql.sql table is replaced with varchar (255). However, it is recommended to use a higher version of MySQL to avoid this problem
Start OpenFire Service
#serviceopenfirerestart
through the browser OpenFire post-installation configuration
#firefox http://IP:9090//IP for server-side IP first select the installation language, I e bad, first select the English version, followed by server-side settings: domain that block can choose the host name or IP address the third step is the database settings, using the standard database connection, Database driver Selection Mysqljdbc driver class is: Com.mysql.jdbc.Driver database url:jdbc:mysql://ip:3306/openfire (where IP is server-side IP) User name: openfire password : 123456
The fourth step is the feature setting, because it is an initial installation and is not used LDAP and so on, so select the initial
Settings, and then set the admin account password can now log in the background for Management #firefoxhttp://ip:9090 (where IP is the server-side IP)
Client Configuration
Download current latest version of Spark is 2.5.8. Download URL for
Http://www.igniterealtime.org/downloads/download-landing.jsp?file=spark/spark_2_5_8.msi
After the installation is completed, if the server has already created a user, such as Alan, you can log in directly with this user, by default, no need to change any network settings, by clicking "Advanced" can get the preferences page, You can see that the port is already set to 5222.
If the server side does not create the user, you can also use accounts to create a new user, such as Tomy, such as,
You can log in directly with Tomy, and you do not need to change any of the network settings by default.
After the user has successfully logged on to the OpenFire server, you can see it in OpenFire:
Summarize
at this point, use openre Building an enterprise interior IM The platform has been basically completed, this article does not guarantee the actual configuration process is completely consistent, but also gratifying is OpenFire it integrates itself SSL features, guaranteeing the transmission of data encryption .
Setting up an XMPP server on a Linux server