Ubuntu下Openfire的安装

一、安装JDK

(1)、创建保存java的目录

administrator@openfire:~$ sudo mkdir -p /usr/lib/jvm/java

(2)、将该文件的权限增加可执行权限

administrator@openfire:~$ sudo u+x /usr/lib/jvm/java/jdk-6u45-linux-x64.bin

(3)、执行该文件

administrator@openfire:~$ cd /usr/lib/jvm/java/
administrator@openfire:/usr/lib/jvm/java$ sudo ./jdk-6u45-linux-x64.bin

(4)、修改环境变量文件

administrator@openfire:~$ sudo vi /etc/profile

export JAVA_HOME=/usr/lib/jvm/java/jdk1.6.0_45
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:{JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=$PATH:${JAVA_HOME}/bin:${JRE_HOME}/bin

(5)、让环境变量生效

administrator@openfire:~$ source /etc/profile

(6)、由于ubuntu中可能会有默认的jdk,如openjdk,所以,为了让系统使用我们安装的JDK,执行下列命令

administrator@openfire:~$ sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/java/jdk1.6.0_45/bin/java 300
update-alternatives: 使用 /usr/lib/jvm/java/jdk1.6.0_45/bin/java 来提供 /usr/bin/java (java),于 自动模式 中。


administrator@openfire:~$ sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/java/jdk1.6.0_45/bin/javac 300
update-alternatives: 使用 /usr/lib/jvm/java/jdk1.6.0_45/bin/javac 来提供 /usr/bin/javac (javac),于 自动模式 中。

通过上述命令将我们安装的java加入菜单中

(7)、选择系统默认要使用的java

administrator@openfire:~$ sudo update-alternatives --config java

(8)、查看系统默认的java版本信息

administrator@openfire:~$ java -version
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)

二、安装OpenFire

 (1)、解压openfire程序

administrator@openfire:~$ tar zxvf openfire_3_9_3.tar.tar

openfire/
openfire/.install4j/
openfire/.install4j/MessagesDefault
openfire/.install4j/firstrun
openfire/.install4j/i4j_extf_0_19dpaqb.utf8
openfire/.install4j/i4j_extf_10_19dpaqb.html
openfire/.install4j/i4j_extf_1_19dpaqb.utf8
openfire/.install4j/i4j_extf_2_19dpaqb.utf8
openfire/.install4j/i4j_extf_3_19dpaqb.utf8
openfire/.install4j/i4j_extf_4_19dpaqb.utf8
openfire/.install4j/i4j_extf_5_19dpaqb.utf8
openfire/.install4j/i4j_extf_6_19dpaqb.utf8
openfire/.install4j/i4j_extf_7_19dpaqb.utf8
openfire/.install4j/i4j_extf_8_19dpaqb.utf8
openfire/.install4j/i4j_extf_9_19dpaqb_unjvvr.png
openfire/.install4j/i4jparams.conf
openfire/.install4j/i4jruntime.jar
openfire/.install4j/user.jar
openfire/.install4j/user/
openfire/LICENSE.html
openfire/README.html
openfire/bin/
openfire/bin/extra/
openfire/bin/extra/embedded-db-viewer.sh
openfire/bin/extra/embedded-db.rc
openfire/bin/extra/openfire-launchd-wrapper.sh
openfire/bin/extra/openfired
openfire/bin/extra/redhat-postinstall.sh
openfire/bin/extra/redhat/
openfire/bin/extra/redhat/openfire
openfire/bin/extra/redhat/openfire-sysconfig
openfire/bin/openfire
openfire/bin/openfirectl
openfire/changelog.html
openfire/conf/
openfire/conf/crowd.properties
openfire/conf/openfire.xml
openfire/conf/security.xml
openfire/documentation/
openfire/documentation/database-guide.html
openfire/documentation/database.html
openfire/documentation/db-integration-guide.html
openfire/documentation/images/
openfire/documentation/images/active_directory.png
openfire/documentation/images/header_logo.gif
openfire/documentation/images/launcher.png
openfire/documentation/images/setup_ldap.png
openfire/documentation/images/sitemesh.png
openfire/documentation/images/windows_service.png
openfire/documentation/index.html
openfire/documentation/install-guide.html
openfire/documentation/ldap-guide.html
openfire/documentation/licenses/
openfire/documentation/licenses/LICENSE-commons-logging.txt
openfire/documentation/licenses/LICENSE-dom4j.txt
openfire/documentation/licenses/LICENSE-jaxen.txt
openfire/documentation/licenses/LICENSE-xpp3.txt
openfire/documentation/overlay.html
openfire/documentation/pluggable-roster-support-guide.html
openfire/documentation/plugin-dev-guide.html
openfire/documentation/protocol-support.html
openfire/documentation/source-build.html
openfire/documentation/ssl-guide.html
openfire/documentation/style.css
openfire/documentation/translator-guide.html
openfire/documentation/upgrade-guide.html
openfire/documentation/wildfire-ent-3_2_0-upgrade.html
openfire/documentation/wildfire-openfire-upgrade.html
openfire/lib/
openfire/lib/activation.jar
openfire/lib/bcpg-jdk15on.jar
openfire/lib/bcpkix-jdk15on.jar
openfire/lib/bcprov-jdk15on.jar
openfire/lib/commons-el.jar.pack
openfire/lib/hsqldb.jar.pack
openfire/lib/jasper-compiler.jar.pack
openfire/lib/jasper-runtime.jar.pack
openfire/lib/jdic.jar
openfire/lib/jtds.jar.pack
openfire/lib/log4j.xml
openfire/lib/mail.jar
openfire/lib/mysql.jar.pack
openfire/lib/openfire.jar.pack
openfire/lib/postgres.jar.pack
openfire/lib/servlet.jar.pack
openfire/lib/slf4j-log4j12.jar.pack
openfire/lib/startup.jar
openfire/lib/tray.dll
openfire/logs/
openfire/logs/stderr.out
openfire/plugins/
openfire/plugins/admin/
openfire/plugins/admin/plugin.xml
openfire/plugins/admin/webapp/
openfire/plugins/admin/webapp/WEB-INF/
openfire/plugins/admin/webapp/WEB-INF/admin.tld
openfire/plugins/admin/webapp/WEB-INF/decorators.xml
openfire/plugins/admin/webapp/WEB-INF/dwr.xml
openfire/plugins/admin/webapp/WEB-INF/lib/
openfire/plugins/admin/webapp/WEB-INF/lib/admin-jsp.jar.pack
openfire/plugins/admin/webapp/WEB-INF/lib/commons-fileupload.jar.pack
openfire/plugins/admin/webapp/WEB-INF/lib/commons-io.jar.pack
openfire/plugins/admin/webapp/WEB-INF/lib/dwr.jar.pack
openfire/plugins/admin/webapp/WEB-INF/sitemesh.xml
openfire/plugins/admin/webapp/WEB-INF/web.xml
openfire/plugins/admin/webapp/favicon.ico
openfire/plugins/admin/webapp/images/
openfire/plugins/admin/webapp/images/add-16x16.gif
openfire/plugins/admin/webapp/images/aim-gray.gif
openfire/plugins/admin/webapp/images/aim.gif
openfire/plugins/admin/webapp/images/arrow_right_blue.gif
openfire/plugins/admin/webapp/images/blank.gif
openfire/plugins/admin/webapp/images/both_32x16.gif
openfire/plugins/admin/webapp/images/bullet-green-14x14.gif
openfire/plugins/admin/webapp/images/bullet-red-14x14.gif
openfire/plugins/admin/webapp/images/bullet-yellow-14x14.gif
openfire/plugins/admin/webapp/images/bullet.gif
openfire/plugins/admin/webapp/images/cache-16x16.gif
openfire/plugins/admin/webapp/images/certificate_ok-16x16.png
openfire/plugins/admin/webapp/images/certificate_warning-16x16.png
openfire/plugins/admin/webapp/images/check-16x16.gif
openfire/plugins/admin/webapp/images/check.gif
openfire/plugins/admin/webapp/images/clearspace.gif
openfire/plugins/admin/webapp/images/connection-manager_16x16.gif
openfire/plugins/admin/webapp/images/delete-16x16.gif
openfire/plugins/admin/webapp/images/doc-changelog-16x16.gif
openfire/plugins/admin/webapp/images/doc-down-16x16.gif
openfire/plugins/admin/webapp/images/doc-readme-16x16.gif
openfire/plugins/admin/webapp/images/edit-16x16.gif
openfire/plugins/admin/webapp/images/enterprise-info-btn.gif
openfire/plugins/admin/webapp/images/enterprise.png
openfire/plugins/admin/webapp/images/error-16x16.gif
openfire/plugins/admin/webapp/images/feed-icon-16x16.gif
openfire/plugins/admin/webapp/images/forbidden-16x16.gif
openfire/plugins/admin/webapp/images/greenlight-24x24.gif
openfire/plugins/admin/webapp/images/header-background_new.gif
openfire/plugins/admin/webapp/images/header-help_new.gif
openfire/plugins/admin/webapp/images/header-title_new.gif
openfire/plugins/admin/webapp/images/icon_update-16x16.gif
openfire/plugins/admin/webapp/images/icon_warning-small.gif
openfire/plugins/admin/webapp/images/icq-gray.gif
openfire/plugins/admin/webapp/images/icq.gif
openfire/plugins/admin/webapp/images/im_available.gif
openfire/plugins/admin/webapp/images/im_away.gif
openfire/plugins/admin/webapp/images/im_dnd.gif
openfire/plugins/admin/webapp/images/im_free_chat.gif
openfire/plugins/admin/webapp/images/im_unavailable.gif
openfire/plugins/admin/webapp/images/incoming_32x16.gif
openfire/plugins/admin/webapp/images/info-16x16.gif
openfire/plugins/admin/webapp/images/irc-gray.gif
openfire/plugins/admin/webapp/images/irc.gif
openfire/plugins/admin/webapp/images/jive-body-bg.gif
openfire/plugins/admin/webapp/images/jive-body-contentbox-bg.gif
openfire/plugins/admin/webapp/images/jive-login-bg.gif
openfire/plugins/admin/webapp/images/jive-login-form-bg-gray.gif
openfire/plugins/admin/webapp/images/jive-login-form-bg.gif
openfire/plugins/admin/webapp/images/jive-nav-bg-left.gif
openfire/plugins/admin/webapp/images/jive-nav-bg-on.gif
openfire/plugins/admin/webapp/images/jive-nav-bg-over.gif
openfire/plugins/admin/webapp/images/jive-nav-bg-right.gif
openfire/plugins/admin/webapp/images/jive-nav-bg.gif
openfire/plugins/admin/webapp/images/jive-nav-div.gif
openfire/plugins/admin/webapp/images/jive-subnav-bg.gif
openfire/plugins/admin/webapp/images/jive-subnav-div.gif
openfire/plugins/admin/webapp/images/jive-tertnav-arrow.gif
openfire/plugins/admin/webapp/images/jive-tertnav-top.gif
openfire/plugins/admin/webapp/images/language_zh_CN.gif
openfire/plugins/admin/webapp/images/lock.gif
openfire/plugins/admin/webapp/images/login_background.png
openfire/plugins/admin/webapp/images/login_boxbg.gif
openfire/plugins/admin/webapp/images/login_header.gif
openfire/plugins/admin/webapp/images/login_logo.gif
openfire/plugins/admin/webapp/images/mark-16x16.gif
openfire/plugins/admin/webapp/images/msn-gray.gif
openfire/plugins/admin/webapp/images/msn.gif
openfire/plugins/admin/webapp/images/outgoing_32x16.gif
openfire/plugins/admin/webapp/images/page-background_new.gif
openfire/plugins/admin/webapp/images/percent-bar-left.gif
openfire/plugins/admin/webapp/images/percent-bar-used-high.gif
openfire/plugins/admin/webapp/images/percent-bar-used-low.gif
openfire/plugins/admin/webapp/images/plugin-16x16.gif
openfire/plugins/admin/webapp/images/redlight-24x24.gif
openfire/plugins/admin/webapp/images/refresh-16x16.gif
openfire/plugins/admin/webapp/images/server-network-24x24.gif
openfire/plugins/admin/webapp/images/server_16x16.gif
openfire/plugins/admin/webapp/images/setup-header.png
openfire/plugins/admin/webapp/images/setup-sidebar-bottom.gif
openfire/plugins/admin/webapp/images/setup-sidebar-top.gif
openfire/plugins/admin/webapp/images/setup_btn_bg-bigblue.gif
openfire/plugins/admin/webapp/images/setup_btn_bg-grey.gif
openfire/plugins/admin/webapp/images/setup_btn_bg-orange.gif
openfire/plugins/admin/webapp/images/setup_btn_closetestx.gif
openfire/plugins/admin/webapp/images/setup_btn_gearplay.gif
openfire/plugins/admin/webapp/images/setup_contentbox_bg.gif
openfire/plugins/admin/webapp/images/setup_header_bg.gif
openfire/plugins/admin/webapp/images/setup_header_logo.gif
openfire/plugins/admin/webapp/images/setup_helpicon.gif
openfire/plugins/admin/webapp/images/setup_language_zh_CN.gif
openfire/plugins/admin/webapp/images/setup_nextprofile.gif
openfire/plugins/admin/webapp/images/setup_sidebar_bg-top.gif
openfire/plugins/admin/webapp/images/setup_sidebar_bg.gif
openfire/plugins/admin/webapp/images/setup_sidebar_check.gif
openfire/plugins/admin/webapp/images/setup_sidebar_progress0.gif
openfire/plugins/admin/webapp/images/setup_sidebar_progress1.gif
openfire/plugins/admin/webapp/images/setup_sidebar_progress2.gif
openfire/plugins/admin/webapp/images/setup_sidebar_progress3.gif
openfire/plugins/admin/webapp/images/setup_sidebar_progress4.gif
openfire/plugins/admin/webapp/images/setup_sidebar_progress5.gif
openfire/plugins/admin/webapp/images/sidebar_top.gif
openfire/plugins/admin/webapp/images/sort_ascending.gif
openfire/plugins/admin/webapp/images/sort_descending.gif
openfire/plugins/admin/webapp/images/star-16x16.gif
openfire/plugins/admin/webapp/images/success-16x16.gif
openfire/plugins/admin/webapp/images/tape.gif
openfire/plugins/admin/webapp/images/twisty_closed_9x9.gif
openfire/plugins/admin/webapp/images/twisty_inactive_9x9.gif
openfire/plugins/admin/webapp/images/twisty_opened_9x9.gif
openfire/plugins/admin/webapp/images/user-clear-16x16.gif
openfire/plugins/admin/webapp/images/user-green-16x16.gif
openfire/plugins/admin/webapp/images/user-red-16x16.gif
openfire/plugins/admin/webapp/images/user-yellow-16x16.gif
openfire/plugins/admin/webapp/images/user.gif
openfire/plugins/admin/webapp/images/wait24trans.gif
openfire/plugins/admin/webapp/images/warning-16x16.gif
openfire/plugins/admin/webapp/images/working-16x16.gif
openfire/plugins/admin/webapp/images/x.gif
openfire/plugins/admin/webapp/images/yahoo-gray.gif
openfire/plugins/admin/webapp/images/yahoo.gif
openfire/plugins/admin/webapp/index.html
openfire/plugins/admin/webapp/js/
openfire/plugins/admin/webapp/js/behaviour.js
openfire/plugins/admin/webapp/js/builder.js
openfire/plugins/admin/webapp/js/controls.js
openfire/plugins/admin/webapp/js/cookies.js
openfire/plugins/admin/webapp/js/dragdrop.js
openfire/plugins/admin/webapp/js/effects.js
openfire/plugins/admin/webapp/js/jscalendar/
openfire/plugins/admin/webapp/js/jscalendar/calendar-setup.js
openfire/plugins/admin/webapp/js/jscalendar/calendar-win2k-1.css
openfire/plugins/admin/webapp/js/jscalendar/calendar-win2k-cold-1.css
openfire/plugins/admin/webapp/js/jscalendar/calendar.js
openfire/plugins/admin/webapp/js/lightbox.js
openfire/plugins/admin/webapp/js/pngfix.js
openfire/plugins/admin/webapp/js/prototype.js
openfire/plugins/admin/webapp/js/scriptaculous.js
openfire/plugins/admin/webapp/js/setup.js
openfire/plugins/admin/webapp/js/slider.js
openfire/plugins/admin/webapp/js/tooltips/
openfire/plugins/admin/webapp/js/tooltips/domLib.js
openfire/plugins/admin/webapp/js/tooltips/domTT.js
openfire/plugins/admin/webapp/js/tooltips/domTT_drag.js
openfire/plugins/admin/webapp/js/tooltips/fadomatic.js
openfire/plugins/admin/webapp/js/unittest.js
openfire/plugins/admin/webapp/setup/
openfire/plugins/admin/webapp/setup/setup-style.css
openfire/plugins/admin/webapp/style/
openfire/plugins/admin/webapp/style/global.css
openfire/plugins/admin/webapp/style/ldap.css
openfire/plugins/admin/webapp/style/lightbox.css
openfire/plugins/admin/webapp/style/login.css
openfire/plugins/admin/webapp/style/setup.css
openfire/plugins/search.jar
openfire/resources/
openfire/resources/database/
openfire/resources/database/openfire_db2.sql
openfire/resources/database/openfire_hsqldb.sql
openfire/resources/database/openfire_mysql.sql
openfire/resources/database/openfire_oracle.sql
openfire/resources/database/openfire_postgresql.sql
openfire/resources/database/openfire_sqlserver.sql
openfire/resources/database/openfire_sybase.sql
openfire/resources/database/upgrade/
openfire/resources/database/upgrade/1/
openfire/resources/database/upgrade/1/openfire_db2.sql
openfire/resources/database/upgrade/1/openfire_hsqldb.sql
openfire/resources/database/upgrade/1/openfire_mysql.sql
openfire/resources/database/upgrade/1/openfire_oracle.sql
openfire/resources/database/upgrade/1/openfire_postgresql.sql
openfire/resources/database/upgrade/1/openfire_sqlserver.sql
openfire/resources/database/upgrade/10/
openfire/resources/database/upgrade/10/openfire_db2.sql
openfire/resources/database/upgrade/10/openfire_hsqldb.sql
openfire/resources/database/upgrade/10/openfire_mysql.sql
openfire/resources/database/upgrade/10/openfire_oracle.sql
openfire/resources/database/upgrade/10/openfire_postgresql.sql
openfire/resources/database/upgrade/10/openfire_sqlserver.sql
openfire/resources/database/upgrade/10/openfire_sybase.sql
openfire/resources/database/upgrade/11/
openfire/resources/database/upgrade/11/openfire_db2.sql
openfire/resources/database/upgrade/11/openfire_hsqldb.sql
openfire/resources/database/upgrade/11/openfire_mysql.sql
openfire/resources/database/upgrade/11/openfire_oracle.sql
openfire/resources/database/upgrade/11/openfire_postgresql.sql
openfire/resources/database/upgrade/11/openfire_sqlserver.sql
openfire/resources/database/upgrade/11/openfire_sybase.sql
openfire/resources/database/upgrade/12/
openfire/resources/database/upgrade/12/openfire_db2.sql
openfire/resources/database/upgrade/12/openfire_hsqldb.sql
openfire/resources/database/upgrade/12/openfire_mysql.sql
openfire/resources/database/upgrade/12/openfire_oracle.sql
openfire/resources/database/upgrade/12/openfire_postgresql.sql
openfire/resources/database/upgrade/12/openfire_sqlserver.sql
openfire/resources/database/upgrade/12/openfire_sybase.sql
openfire/resources/database/upgrade/13/
openfire/resources/database/upgrade/13/openfire_db2.sql
openfire/resources/database/upgrade/13/openfire_hsqldb.sql
openfire/resources/database/upgrade/13/openfire_mysql.sql
openfire/resources/database/upgrade/13/openfire_oracle.sql
openfire/resources/database/upgrade/13/openfire_postgresql.sql
openfire/resources/database/upgrade/13/openfire_sqlserver.sql
openfire/resources/database/upgrade/13/openfire_sybase.sql
openfire/resources/database/upgrade/14/
openfire/resources/database/upgrade/14/openfire_db2.sql
openfire/resources/database/upgrade/14/openfire_hsqldb.sql
openfire/resources/database/upgrade/14/openfire_mysql.sql
openfire/resources/database/upgrade/14/openfire_oracle.sql
openfire/resources/database/upgrade/14/openfire_postgresql.sql
openfire/resources/database/upgrade/14/openfire_sqlserver.sql
openfire/resources/database/upgrade/14/openfire_sybase.sql
openfire/resources/database/upgrade/15/
openfire/resources/database/upgrade/15/openfire_db2.sql
openfire/resources/database/upgrade/15/openfire_hsqldb.sql
openfire/resources/database/upgrade/15/openfire_mysql.sql
openfire/resources/database/upgrade/15/openfire_oracle.sql
openfire/resources/database/upgrade/15/openfire_postgresql.sql
openfire/resources/database/upgrade/15/openfire_sqlserver.sql
openfire/resources/database/upgrade/15/openfire_sybase.sql
openfire/resources/database/upgrade/16/
openfire/resources/database/upgrade/16/openfire_db2.sql
openfire/resources/database/upgrade/16/openfire_hsqldb.sql
openfire/resources/database/upgrade/16/openfire_mysql.sql
openfire/resources/database/upgrade/16/openfire_oracle.sql
openfire/resources/database/upgrade/16/openfire_postgresql.sql
openfire/resources/database/upgrade/16/openfire_sqlserver.sql
openfire/resources/database/upgrade/16/openfire_sybase.sql
openfire/resources/database/upgrade/17/
openfire/resources/database/upgrade/17/openfire_db2.sql
openfire/resources/database/upgrade/17/openfire_hsqldb.sql
openfire/resources/database/upgrade/17/openfire_mysql.sql
openfire/resources/database/upgrade/17/openfire_oracle.sql
openfire/resources/database/upgrade/17/openfire_postgresql.sql
openfire/resources/database/upgrade/17/openfire_sqlserver.sql
openfire/resources/database/upgrade/17/openfire_sybase.sql
openfire/resources/database/upgrade/18/
openfire/resources/database/upgrade/18/openfire_db2.sql
openfire/resources/database/upgrade/18/openfire_hsqldb.sql
openfire/resources/database/upgrade/18/openfire_mysql.sql
openfire/resources/database/upgrade/18/openfire_oracle.sql
openfire/resources/database/upgrade/18/openfire_postgresql.sql
openfire/resources/database/upgrade/18/openfire_sqlserver.sql
openfire/resources/database/upgrade/18/openfire_sybase.sql
openfire/resources/database/upgrade/19/
openfire/resources/database/upgrade/19/openfire_db2.sql
openfire/resources/database/upgrade/19/openfire_hsqldb.sql
openfire/resources/database/upgrade/19/openfire_mysql.sql
openfire/resources/database/upgrade/19/openfire_oracle.sql
openfire/resources/database/upgrade/19/openfire_postgresql.sql
openfire/resources/database/upgrade/19/openfire_sqlserver.sql
openfire/resources/database/upgrade/19/openfire_sybase.sql
openfire/resources/database/upgrade/2/
openfire/resources/database/upgrade/2/openfire_db2.sql
openfire/resources/database/upgrade/2/openfire_hsqldb.sql
openfire/resources/database/upgrade/2/openfire_mysql.sql
openfire/resources/database/upgrade/2/openfire_oracle.sql
openfire/resources/database/upgrade/2/openfire_postgresql.sql
openfire/resources/database/upgrade/2/openfire_sqlserver.sql
openfire/resources/database/upgrade/20/
openfire/resources/database/upgrade/20/openfire_db2.sql
openfire/resources/database/upgrade/20/openfire_hsqldb.sql
openfire/resources/database/upgrade/20/openfire_mysql.sql
openfire/resources/database/upgrade/20/openfire_oracle.sql
openfire/resources/database/upgrade/20/openfire_postgresql.sql
openfire/resources/database/upgrade/20/openfire_sqlserver.sql
openfire/resources/database/upgrade/20/openfire_sybase.sql
openfire/resources/database/upgrade/21/
openfire/resources/database/upgrade/21/openfire_db2.sql
openfire/resources/database/upgrade/21/openfire_hsqldb.sql
openfire/resources/database/upgrade/21/openfire_mysql.sql
openfire/resources/database/upgrade/21/openfire_oracle.sql
openfire/resources/database/upgrade/21/openfire_postgresql.sql
openfire/resources/database/upgrade/21/openfire_sqlserver.sql
openfire/resources/database/upgrade/21/openfire_sybase.sql
openfire/resources/database/upgrade/4/
openfire/resources/database/upgrade/4/openfire_db2.sql
openfire/resources/database/upgrade/4/openfire_hsqldb.sql
openfire/resources/database/upgrade/4/openfire_mysql.sql
openfire/resources/database/upgrade/4/openfire_oracle.sql
openfire/resources/database/upgrade/4/openfire_postgresql.sql
openfire/resources/database/upgrade/4/openfire_sqlserver.sql
openfire/resources/database/upgrade/4/openfire_sybase.sql
openfire/resources/database/upgrade/5/
openfire/resources/database/upgrade/5/openfire_db2.sql
openfire/resources/database/upgrade/5/openfire_hsqldb.sql
openfire/resources/database/upgrade/5/openfire_mysql.sql
openfire/resources/database/upgrade/5/openfire_oracle.sql
openfire/resources/database/upgrade/5/openfire_postgresql.sql
openfire/resources/database/upgrade/5/openfire_sqlserver.sql
openfire/resources/database/upgrade/5/openfire_sybase.sql
openfire/resources/database/upgrade/6/
openfire/resources/database/upgrade/6/openfire_db2.sql
openfire/resources/database/upgrade/6/openfire_hsqldb.sql
openfire/resources/database/upgrade/6/openfire_mysql.sql
openfire/resources/database/upgrade/6/openfire_oracle.sql
openfire/resources/database/upgrade/6/openfire_postgresql.sql
openfire/resources/database/upgrade/6/openfire_sqlserver.sql
openfire/resources/database/upgrade/6/openfire_sybase.sql
openfire/resources/database/upgrade/7/
openfire/resources/database/upgrade/7/openfire_db2.sql
openfire/resources/database/upgrade/7/openfire_hsqldb.sql
openfire/resources/database/upgrade/7/openfire_mysql.sql
openfire/resources/database/upgrade/7/openfire_oracle.sql
openfire/resources/database/upgrade/7/openfire_postgresql.sql
openfire/resources/database/upgrade/7/openfire_sqlserver.sql
openfire/resources/database/upgrade/7/openfire_sybase.sql
openfire/resources/database/upgrade/8/
openfire/resources/database/upgrade/8/openfire_db2.sql
openfire/resources/database/upgrade/8/openfire_hsqldb.sql
openfire/resources/database/upgrade/8/openfire_mysql.sql
openfire/resources/database/upgrade/8/openfire_oracle.sql
openfire/resources/database/upgrade/8/openfire_postgresql.sql
openfire/resources/database/upgrade/8/openfire_sqlserver.sql
openfire/resources/database/upgrade/8/openfire_sybase.sql
openfire/resources/database/upgrade/9/
openfire/resources/database/upgrade/9/openfire_db2.sql
openfire/resources/database/upgrade/9/openfire_hsqldb.sql
openfire/resources/database/upgrade/9/openfire_mysql.sql
openfire/resources/database/upgrade/9/openfire_oracle.sql
openfire/resources/database/upgrade/9/openfire_postgresql.sql
openfire/resources/database/upgrade/9/openfire_sqlserver.sql
openfire/resources/database/upgrade/9/openfire_sybase.sql
openfire/resources/i18n/
openfire/resources/i18n/openfire_i18n.properties
openfire/resources/i18n/openfire_i18n_cs_CZ.properties
openfire/resources/i18n/openfire_i18n_de.properties
openfire/resources/i18n/openfire_i18n_en.properties
openfire/resources/i18n/openfire_i18n_es.properties
openfire/resources/i18n/openfire_i18n_fr.properties
openfire/resources/i18n/openfire_i18n_ja_JP.properties
openfire/resources/i18n/openfire_i18n_nl.properties
openfire/resources/i18n/openfire_i18n_pl_PL.properties
openfire/resources/i18n/openfire_i18n_pt_BR.properties
openfire/resources/i18n/openfire_i18n_pt_PT.properties
openfire/resources/i18n/openfire_i18n_ru_RU.properties
openfire/resources/i18n/openfire_i18n_sk.properties
openfire/resources/i18n/openfire_i18n_zh_CN.properties
openfire/resources/nativeAuth/
openfire/resources/nativeAuth/linux-i386/
openfire/resources/nativeAuth/linux-i386/libshaj.so
openfire/resources/nativeAuth/osx-ppc/
openfire/resources/nativeAuth/osx-ppc/libshaj.jnilib
openfire/resources/nativeAuth/solaris-sparc/
openfire/resources/nativeAuth/solaris-sparc/libshaj.so
openfire/resources/nativeAuth/win32-x86/
openfire/resources/nativeAuth/win32-x86/shaj.dll
openfire/resources/security/
openfire/resources/security/client.truststore
openfire/resources/security/keystore
openfire/resources/security/truststore
openfire/resources/spank/
openfire/resources/spank/WEB-INF/
openfire/resources/spank/WEB-INF/web.xml
openfire/resources/spank/index.html

 (2)、将解压后的openfire目录移到/opt目录下

administrator@openfire:~$ sudo mv openfire /opt

 (3)、创建一个openfire组

administrator@openfire:~$ sudo groupadd openfire

 (4)、添加一个用户并将该用户加入到openfire组
administrator@openfire:~$ sudo useradd -d /opt/openfire -g openfire openfire

 (5)、更改/opt/openfire的属主和属组

administrator@openfire:~$ sudo chown -R openfire:openfire /opt/openfire

 (6)、执行openfire

administrator@openfire:~$ su - openfire
密码:
$ cd /opt/openfire/bin
$ ./openfire start
testing JVM in /usr ...
Starting openfire

三、配置数据库

 (1)、进行openfire所提供的数据库脚本所在目录

wKioL1ONy86SdudkAAEpQKkDQSg881.jpg

(2)、登录mysql

Ubuntu下Openfire的安装_第1张图片

(3)创建openfire数据库

wKioL1ONy87SUNobAABDw7A-jy0053.jpg

(4)、切换到openfire数据库

wKiom1ONy_vA6sCRAAAmnRsiJUw723.jpg

(5)、导入数据库脚本

Ubuntu下Openfire的安装_第2张图片

(6)、刷新权限

wKioL1ONy8_B4AosAAA9Q13eJXk380.jpg

 四、对openfire进行安装配置

(1)、输入下列网址,选择相应的语言

Ubuntu下Openfire的安装_第3张图片

(2)根据公司的情况输入下列信息

Ubuntu下Openfire的安装_第4张图片

(3)、选择外部数据库

Ubuntu下Openfire的安装_第5张图片

(4)输入mysql的连接信息

Ubuntu下Openfire的安装_第6张图片

(5)选择默认的认证

Ubuntu下Openfire的安装_第7张图片

(6)输入管理员的密码

Ubuntu下Openfire的安装_第8张图片

(7)、安装完毕

Ubuntu下Openfire的安装_第9张图片

(8)进入登录界面

Ubuntu下Openfire的安装_第10张图片

(9)输入用户名和密码

Ubuntu下Openfire的安装_第11张图片

(10)、登录成功

Ubuntu下Openfire的安装_第12张图片

 

你可能感兴趣的:(视频云)