您的位置:首页 > 运维架构 > Linux

Centos安装Openfire

2014-03-08 01:59 246 查看
Step 1☆ 环境搭建
yum install mysql mysql-server java-openjkd
Step 2☆ 下载软件包
wget http://www.igniterealtime.org/downloads/download-landing.jsp?file=openfire/openfire-3.9.1-1.i386.rpm
Step 3☆ 开启防火墙端口
iptables -I INPUT -p tcp --dport 9090 -j ACCEPT
iptables -I INPUT -p tcp --dport 9091 -j ACCEPT
iptables -I INPUT -p tcp --dport 5222 -j ACCEPT
Step 4☆ 安装Openfire
RPM -ivh openfire-3.9.1-1.i386.rpm
service openfire start
Step 5☆ 配置数据库
/usr/bin/mysql_secure_installation
mysql -u roo -p
create database openfire;
use openfire;
source /opt/openfire/resources/database/openfire_mysql.sql
Step 6☆ 配置Openfire
浏览器打开http://IP:9090
选择语言
服务器信息设置
数据库连接设置--标准数据库连接
数据库驱动选项-MySQL
数据库URL:jdbc:mysql://127.0.0.1:3306/openfire?rewriteBatchedStatements=true


Step 6☆ 客户端安装
Spark
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Openfire