Professional Documents
Culture Documents
A. DasarTeori
Untuk memahami lebih dalam mengenai XMPP, silahkan bacaartikel yang diattach pada modul
ini dengan judul “Fun with XMPP and Google Talk”.Silahkan pelajari artikel tersebut.
Dokumen Instalasi berikut diambil dari Installation Guide Openfire yang beralamat di
http://www.igniterealtime.org/builds/openfire/docs/latest/documentation/install-guide.html
Openfire is a powerful instant messaging (IM) and chat server that implements the XMPP
protocol. This document will guide you through installing Openfire. For a full list of features and
more information, please visit the Openfire website:
http://www.igniterealtime.org/projects/openfire/
1. Installation
Windows
Linux/Unix
Choose either the RPM or tar.gz build. If using the RPM, run it using your package
manager to install Openfire to /opt/openfire:
2. Setup Overview
To complete the installation of Openfire, you'll need to perform each of the following steps:
1. Database - if you choose to use an external database, you must prepare your database for
Openfire.
2. Setup - Use the built-in web-based setup tool to setup and verify the server configuration.
3. Admin Console - use the web-based admin tool to manage the server.
openfire/
|- readme.html
|- license.html
|- conf/
|- bin/
|- jre/
|- lib/
|- plugins/
|- admin/
|- resources/
|-database/
|-security/
|- documentation/
Openfire can store its data in an embedded database or you can choose to use an external
database such as MySQL or Oracle. If you would like to use an external database, you must
prepare it before proceeding with installation. View the database setup documentation for more
information.
mysql –u user –p
create database db_name;
quit
cd /path/to/openfire/resources/database
cat openfire_mysql.sql | mysql db_name –u user -p
6. Admin Console
After completing the above steps, Openfire will be configured and you can use the web-based
admin console to administer the server. The URL should be the same as you used to setup the
server unless you changed the port during the setup.
If you're running Openfire on Windows, you will likely want to run Openfire as a standard
Windows service after initial setup. If you used the Windows installer, aopenfire-service.exe
file will be in the bin directory of the installation. You can use this executable to install and
control the Openfire service.
You can also use the Services tool in the Windows Control Panel to start and stop the service.
Custom Parameters
Advanced users may wish to pass in parameters to the Java virtual machine (VM) to customize
the runtime environment of Openfire. You can do this by creating vmoptions files in the bin/
directory of your Openfire installation. For the Windows service, you'd create a new text file
called openfire-service.vmoptions. Each parameter to the VM should be on a new line of the file.
For example, to set the minimum heap size to 512 MB and max VM heap size to 1024 MB,
you'd use:
-Xms 512m
-Xmx 1024m
To create parameters for the normal launcher, create a file called openfired.vmoptions (since the
openfire.exe launcher invokes the openfired.exe executable to actually start the server).
# /etc/init.d/openfire
Usage /etc/init.d/openfire {start|stop|restart|status|condrestart|reload}
# /etc/init.d/openfire start
Starting openfire:
If you are running on a different Linux/Unix varient, and/or you have used the .tar.gz 'installer',
you can start and stop Openfire using the bin/openfire script in your Openfire installation:
# ./openfire
Usage: ./openfire {start|stop}
# ./openfire start
Starting openfire
If you would like to install Openfire as a service, two scripts are provided in the bin/extra
directory:
Custom Parameters
Advanced users may wish to pass in parameters to the Java virtual machine (VM) to customize
the runtime environment of Openfire. If you installed via RPM, you can customize this by
editing /etc/sysconfig/openfire and looking at the OPENFIRE_OPTS option. If you installed via
.tar.gz, you will need to tweak your startup script to fit your needs.
9. Plugins
Plugins add additional features and protocol support to Openfire. After setting up your Openfire
installation, you may want to download and install plugins to enhance your server. Plugins can
be downloaded from the plugins page on igniterealtime.org or directly inside the administration
console.
Installing Plugins
If you download a plugin from inside the Openfire administration console, it will automatically
be installed. If you manually download the plugin (packaged as a .jar file), you can deploy it by
copying the plugin file to the plugins/ directory of your Openfire installation. A plugin monitor
will automatically extract the plugin into a directory and install the plugin in Openfire. You may
also use the "upload plugin" feature in the admin console (under the Plugins tab) to load a plugin
from your local file system to the server.
Managing Plugins
Plugins can be managed inside the Openfire admin console. You can also manually delete a
plugin at any time by deleting its JAR file (Openfire will automatically remove the plugin from
memory and delete it's directory when you do so).