{"id":20894575,"url":"https://github.com/gnu4cn/openfire-deployment","last_synced_at":"2026-03-14T08:34:07.084Z","repository":{"id":94392254,"uuid":"85036077","full_name":"gnu4cn/openfire-deployment","owner":"gnu4cn","description":"Openfire是一个基于XMPP协议的聊天服务器，部署极为简单，可与Pidgin、Gajim等一众XMPP客户端进行连接。","archived":false,"fork":false,"pushed_at":"2017-03-15T06:49:12.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-19T12:13:57.482Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gnu4cn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-15T06:15:05.000Z","updated_at":"2018-03-13T08:43:06.000Z","dependencies_parsed_at":"2023-04-30T11:36:36.157Z","dependency_job_id":null,"html_url":"https://github.com/gnu4cn/openfire-deployment","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnu4cn%2Fopenfire-deployment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnu4cn%2Fopenfire-deployment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnu4cn%2Fopenfire-deployment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnu4cn%2Fopenfire-deployment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gnu4cn","download_url":"https://codeload.github.com/gnu4cn/openfire-deployment/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243278274,"owners_count":20265521,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-18T10:20:11.171Z","updated_at":"2025-12-25T08:20:09.541Z","avatar_url":"https://github.com/gnu4cn.png","language":null,"readme":"# XMPP聊天服务器OpenFire的部署\n\n## 关于XMPP\n\n...\n\n## OpenFire的安装\n\n1. 直接前往OpenFire网站，下载`deb`安装包。\n\n2. 先安装并配置Postgresql数据库，参考[PostgreSQL新手入门](http://www.ruanyifeng.com/blog/2013/12/getting_started_with_postgresql.html)。\n\n3. 安装第一步下载的OpenFire安装包。完成后在`/etc/init.d/`中就已经有了`openfire`的控制脚本，可通过`sudo service openfire start/stop/restart`进行其服务的启动/停止/重启了。同时OpenFire的安装目录为`/usr/share/openfire`\n\n4. 启动`openfire`服务，通过浏览器加载`http://localhost:9090/`，填入相关选项、数据库连接参数及管理员邮箱密码等。\n\n5. 重新进入`http://localhost:9090/`, 此时要求输入用户名`admin`，及上一步设定的管理员密码，进入系统后进行其它设置。\n\n## OpenFire文件传输的支持\n\n默认安装的OpenFire并不支持文件传输。为实现文件传输，需要加入一些系统属性。在“服务器” -\u003e “系统熟悉” -\u003e “添加新属性”中，加入以下属性（参考[文件传输](https://github.com/KangLin/RabbitIm/blob/master/docs/Books/FileTransfer.md)）：\n\n```\nxmpp.filetransfer.enabled = true\nxmpp.proxy.service=proxy\nxmpp.proxy.enabled=ture\nxmpp.proxy.port=7777\nxmpp.proxy.externalip=127.0.0.1\n```\n\n就可以实现XMPP客户端之间的文件传输了，但此种文件传输尚不能支持离线托管的文件传输，离线托管文件传输仍需进一步配置。\n\n## OpenFire用户自主注册\n\n默认用户（及用户注册）是通过管理员手动完成的，而为实现自主注册，需要安装一个名为`Registration`的插件，该插件只有英文界面，但具有`i18n`特性，故可通过加入相应的`zh_CN` properties文件，对其进行界面汉化，步骤如下。\n\n1. 将安装目录（`/usr/share/openfire`）下`plugins`中的`registration.jar`文件拷贝到用户目录（需要使用`sudo`），并将其`chown`为一般用户所有。\n\n2. 将`plugins`下的`registration/i18n/`中的原版语言`properties`文件拷贝到用户目录，并`chown`为一般用户所有。\n\n3. 使用任何的文本编辑器，对原版语言`properties`文件进行翻译编辑，完成后加以保存。\n\n4. 运行`native2ascii -encoding UTF-8 registration_i18n.properties registration_i18n_zh_CN.properties`，得到适用于Java的语言文件。\n\n5. 使用任意的解压软件，打开`registration.jar`这个jar压缩包，将得到的语言文件，拖入到打开的压缩包的`i18n`文件夹中，关闭解压软件即可。\n\n6. 使用`sudo`将该`jar`文件，拷贝至OpenFire安装目录的`plugins`文件夹中（`/usr/share/openfire/plugins`）。\n\n7. 在OpenFire的web管理控制台的“插件”-\u003e“插件”下，对`Registration`插件进行重启，后即可得到中文化的自主注册页面了，汉化完成。\n\n## 在OpenFire web登陆页加入注册链接\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnu4cn%2Fopenfire-deployment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgnu4cn%2Fopenfire-deployment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnu4cn%2Fopenfire-deployment/lists"}