天天看点

openfire 安装部署

1. openfire安装和配置


 本文介绍openfire 在linux上安装部署过程


 linux上有两种安装方式,一个是RPM包方式,另一个是tar.gz压缩包方式,
 官方推荐采用RPM包方式,会默认安装成服务,同时不需要自己安装jdk。
 采用tar.gz包安装方式时需要自己安装jre环境
 本文采用tar.gz 方式


 下载openfire linux 安装包到/opt目录


 cd /opt
 wget http://download.igniterealtime.org/openfire/openfire_3_9_3.tar.gz


 tar xzvf  openfire_3_9_3.tar.gz


 启动 openfire
 bin/openfire start


 默认安装目录结构:


 drwxr-xr-x 3 root root   4096 5月   7 02:59 bin
 -rw-r--r-- 1 root root 175122 5月   7 02:58 changelog.html
 drwxr-xr-x 2 root root   4096 7月   7 14:26 conf
 drwxr-xr-x 4 root root   4096 5月   7 02:59 documentation
 drwxr-xr-x 2 root root   4096 7月   7 14:25 embedded-db
 drwxr-xr-x 2 root root   4096 7月   7 14:19 lib
 -rw-r--r-- 1 root root  10871 5月   7 02:58 LICENSE.html
 drwxr-xr-x 2 root root   4096 7月   7 14:19 logs
 drwxr-xr-x 4 root root   4096 7月   7 14:19 plugins
 -rw-r--r-- 1 root root   5332 5月   7 02:58 README.html
 drwxr-xr-x 7 root root   4096 5月   7 02:59 resources


 bin目录存放openfire可执行程序及其他脚本文件
 conf目录为openfire配置文件,可设置监听端口,地址,管理台端口,与外部数据库连接时的设置信息等。


 documentation 为openfire个各种文档


 embedded-db目录是系统启动后生成的保存数据库相关的内容


 lib目录是运行openfire需要的一些库文件。
 log目录保存openfire的log信息,文件按级别保存,可用于调试
 plugins目录保存openfire的插件jar包,可二次开发插件扩展openfire。
 resources目录包括一些资源文件,如各种类型数据库表,升级脚本,国际化等




 运行成功后,
 浏览器输入
​​​ http://ip:9090​​​

 进入管理台,初始化环境


 xmpp监听端口为5222
 管理台监听端口为9090      

继续阅读