forked from judasn/Linux-Tutorial
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
114 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# Openfire 安装和配置 | ||
|
||
|
||
## 本机环境 | ||
|
||
- 系统:CentOS 6.7 64 位 | ||
- JDK 1.8 64 位 | ||
- MySQL 5.6 | ||
|
||
|
||
|
||
## Openfire 说明 | ||
|
||
|
||
- 官网:<http://www.igniterealtime.org/projects/openfire/> | ||
- 官网下载:<http://www.igniterealtime.org/downloads/index.jsp> | ||
- 官网插件列表:<http://www.igniterealtime.org/projects/openfire/plugins.jsp> | ||
- 官网文档:<http://www.igniterealtime.org/builds/openfire/docs/latest/documentation/> | ||
- 官网安装手册:<http://www.igniterealtime.org/builds/openfire/docs/latest/documentation/install-guide.html> | ||
- 官网安装手册-中文翻译版本:<http://wiki.jabbercn.org/Openfire:%E5%AE%89%E8%A3%85%E6%8C%87%E5%8D%97> | ||
- 官网数据库部署手册:<http://www.igniterealtime.org/builds/openfire/docs/latest/documentation/database.html> | ||
- javadoc 文档:<http://www.igniterealtime.org/builds/openfire/docs/latest/documentation/javadoc/> | ||
- 连接管理工具(上千用户的时候用):<http://www.igniterealtime.org/projects/openfire/connection_manager.jsp > | ||
|
||
|
||
## 下载 | ||
|
||
- 官网下载:<http://www.igniterealtime.org/downloads/index.jsp> | ||
- 当前最新版本:**4.0.2**,下载文件:`openfire-4.0.2-1.i386.rpm` | ||
|
||
|
||
## 安装 MySQL、JDK | ||
|
||
- [MySQL 安装和配置](Mysql-Install-And-Settings.md) | ||
- [JDK 安装](JDK-Install.md) | ||
|
||
|
||
## 安装 Openfire | ||
|
||
- JDK 1.7 或以上,我这里使用 1.7 | ||
- CentOS 系列(Red Hat、Fedora)官网推荐安装 RPM 文件,因为有一些相关环境他们帮我们考虑了 | ||
- 安装命令:`rpm -ivh openfire-4.0.2-1.i386.rpm` | ||
- Openfire 默认给我们生成安装目录:**/opt/openfire** | ||
- 修改 JDK VM 参数:`vim /etc/sysconfig/openfire`,找到 23 行,打开 OPENFIRE_OPTS 删除这一行注释,分配多少 VM 你根据自己的机子来配置。 | ||
- 数据库的 my.cnf 文件建议采用我 MySQL 文章中推荐的 my.cnf。 | ||
- 初始化数据库: | ||
- 默认的初始化数据库脚本在(其他数据库类型的脚本也在这个目录下):**/opt/openfire/resources/database/openfire_mysql.sql** | ||
- 进入 MySQL 命令行状态:`mysql -u root -p` | ||
- 创建数据库:`create database `openfire` character set utf8;` | ||
- 退出 MySQL 命令行模式,在终端命令状态下,执行:`sudo mysql -u root -p openfire < /opt/openfire/resources/database/openfire_mysql.sql` | ||
- 先停掉防火墙:`service iptables stop` | ||
- 启动:`/etc/init.d/openfire start` | ||
- 查看进程:`ps aux | grep openfire` | ||
- 停止:`/etc/init.d/openfire stop` | ||
- 重启:`/etc/init.d/openfire restart` | ||
- 访问:`http://192.168.1.113:9090` | ||
|
||
|
||
- 数据库 URL 需要特别注意的是需要加入编码设置:jdbc:mysql://192.168.1.113:3306/openfire?rewriteBatchedStatements=true&useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8 | ||
- 找到配置文件:conf/openfire.xml,连接mysql的地址改为: ?useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8 | ||
|
||
|
||
如果连接不了数据库,可以看错误日志:`cat /opt/openfire/logs/error.log` | ||
|
||
|
||
|
||
|
||
## 配置 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Rap 安装和配置 | ||
|
||
|
||
## 本机环境 | ||
|
||
- 系统:CentOS 6.7 64 位 | ||
- JDK 1.8 64 位 | ||
- MySQL 5.6 | ||
|
||
|
||
|
||
## Rap 说明 | ||
|
||
|
||
- 官网:<https://github.com/thx/RAP> | ||
- 在线版:<http://rap.taobao.org/> | ||
- 官网 Wiki:<https://github.com/thx/RAP/wiki/home_cn> | ||
- 官网部署手册:<https://github.com/thx/RAP/wiki/deploy_manual_cn> | ||
- 用户手册:<https://github.com/thx/RAP/wiki/user_manual_cn> | ||
|
||
|
||
## 下载 | ||
|
||
- 官网下载:<https://github.com/thx/RAP/releases> | ||
- 当前最新版本:**0.14.1** | ||
- 下载 war 部署包:`wget http://rap.taobao.org/release/RAP-0.14.1-SNAPSHOT.war` | ||
|
||
|
||
## 安装 MySQL、JDK、Tomcat | ||
|
||
- [MySQL 安装和配置](Mysql-Install-And-Settings.md) | ||
- [JDK 安装](JDK-Install.md) | ||
- [Tomcat 安装和配置、优化](Tomcat-Install-And-Settings.md) | ||
|
||
|
||
## 安装 Rap | ||
|
||
|
||
|
||
## 配置 | ||
|
||
|