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

Install Openfire (IM) 3.9.3 on CentOS 6.5

2014-09-29 11:27 645 查看
yum -y install wget glibc.i686 mysql-server
rpm -ivh jdk-7u67-linux-x64.rpm
rpm -ivh openfire-3.9.3-1.i386.rpm
vi /etc/sysconfig/openfire

JAVA_HOME=/usr/java/default

service openfire start
service mysqld start; chkconfig mysqld on
mysql_secure_installation

mysql -uroot -p
mysql> CREATE DATABASE openfire;
mysql> GRANT ALL PRIVILEGES ON *.* TO 'openfire'@'localhost' IDENTIFIED BY 'openfire' WITH GRANT OPTION;
mysql> flush privileges;

http://openfire-ip:9090, modify mysql server to localhost and use openfire database



rm -rf /opt/openfire/plugins/search.jar

use admin web to install search plugin (username: admin)

auto add new user to group:












Spark Web:
cd /opt/openfire/plugins/admin/webapp
tar zxf sparkweb_0_9_0.tar.gz
chmod 755 sparkweb; chmod 644 sparkweb/*

chown -R daemon:daemon sparkweb

cd sparkweb
mv SparkWeb.html index.html
vi index.html
# line 28
<script type="text/javascript">
function jive_sparkweb_getConfig()
{
return {
server: "youropenfireserver",
connectionType: "socket",
port: "5222",
autoLogin: "false"
policyFileURL: "xmlsocket://youropenfireserver:5229"
};

http://youropenfireserver:9090/sparkweb/



本文出自 “Ilovecat(个人笔记)” 博客,请务必保留此出处http://hj192837.blog.51cto.com/655995/1559309
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: