UBUNTU安装OPENFIRE

星期三, 1月 9th, 2008 @ 9:22 上午 | UBUNTU

首先[tag]UBUNTU[/tag] Server的安装就不说了,可以查看本站的这篇文章,[tag]openfire[/tag]需要LAMP,安装服务器的时候选择该选项。
1、安装phpmyadmin,可以直接在新立得软件包里面选择完成安装;
2、设置mysql root帐户密码:

  1. $ mysql -u root
  2. mysql> GRANT ALL PRIVILEGES ON *.* TO root@localhost IDENTIFIED BY "123456";

3、用phpmyadmin建立一个名为“openfire”的数据库,整理格式选择”utf-8_unicode_ci”
4、下载openfire,ubuntu下面当然是下载deb格式的,当前最新版本为3.4.3,官方下载地址,也可以在本站下载
5、安装JAVA

  1. $ sudo apt-get install sun-java6-bin
  2. $ sudo update-alternatives --config java

选择 java6 为默认的java环境

  1. /usr/lib/jvm/java-6-sun/jre/bin/java

6、安装openfire_3.4.3_all.deb
7、安装完成后访问 http://localhost:9090/,进行设置,设置过程比较简单,这里有详细的图文教程
注意在选择数据库的时候将

  1. jdbc:mysql://[host-name]:3306/[database-name]

改为:

  1. jdbc:mysql://localhost:3306/openfire?useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8

实际填写应该是:

  1. jdbc:mysql://localhost:3306/openfire?useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8

Tags: ,

Related posts

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word