第5章配置 目录列表 ---7.1.2版本

发布时间: 5年前 (2020-04-13)浏览: 867评论: 0

第5章配置

当用户首次尝试设置客户端时,他会遇到2个配置文件:/ etc文件夹中的tigase.confinit.properties这是所有这些文件的简要说明,在其他部分中,您可以了解配置服务器所需的所有详细信息。

  1. init.properties文件是一个简单的文本文件,其中服务器参数的格式为:key = value如果缺少XML配置文件,则Tigase服务器将读取init.properties文件,并将在此找到的参数用作生成XML文件的默认参数。因此,如果更改init.properties文件,通常必须停止服务器,然后删除XML文件并重新启动服务器。读取init.properties中的所有设置,并将其应用于XML配置。该属性文件易于阅读,并且修改非常安全。目前,这是更改服务器配置的推荐方法。

  2. tigase.conf是Tigase服务器启动配置。服务器本身实际上并未使用它。而是包含操作系统设置和环境参数,以正确运行Java虚拟机它仅在具有Bash shell的类Unix系统上有用。如果在MS Windows系统上运行服务器,则使用tigase.batwrapper.conf文件。tigase.conf文件被读取并加载脚本/ tigase.sh shell脚本,还扫描Java虚拟机和其他工具所需要的操作系统环境。

Tigase XMPP服务器init.properties配置

init.properties是Java属性文件的稍微扩展的版本,具有(键,值)对。

注释行的第一个非空白ASCII字符为“#”或“!”。

该键以第一个非空白ASCII字符开头,并以第一个空白ASCII字符或'='或':'之一结束。因此,如果您的密钥包含'=',':'或空格字符中的任何一个,则必须使用反斜杠\'\':\:或\ =对其进行转义。

以下所有示例均将“ vhosts”指定为键,并将“ test-a,test-b,test-c”指定为值:

vhosts = test-a,test-b,test-c虚拟主机:test-a,test-b,test-c
    虚拟主机=测试-a,测试-b,测试-c

可能的类型是:

  • [S](或全无)-字符串:'abcdef'

  • [s] -字符串数组:“ abcdef,ghaijk,lmnopq”

  • [B] -布尔值:“ true”或“ false”

  • [b] -布尔数组:“ true,true,false”

  • [L] -长号:1234567890

  • [l] -长数组:'12334、45435、45645'

  • [I] -整数:123456

  • [i] -整数数组:'123、456、678'

有许多参数的含义远不只是一种属性。其中一些会影响许多配置设置,或者会在XML文件中生成整个部分。它们大多数以\'-'双连字符开头。请注意,放在init.properties文件中以\'-'开头的每个属性都将成为JVM系统属性(开头没有\'-')。

请参考属性指南以获取属性描述。

属性名称: -admins

属性名称:-- auth-db

属性名称: -auth-db-uri

属性名称: -auth-domain-repo-pool

属性名称: -auth-repo-pool

属性名称: -auth-repo-pool-size

属性名称:-- bind-ext-hostnames

属性名称:-- bosh-close-connection

属性名称:-- bosh-extra-headers-file

属性名称:-- cl-conn-repo-class

属性名称: -client-access-policy-file

属性名称:-- cluster-connect-all

属性名称:-- cluster-mode

属性名称:-- cluster-nodes

属性名称:-- cm-ht-traffic-throttling

属性名称: -cm-see-other-host

属性名称:-- cm-traffic-throttling

属性名称:-- cmpname-ports

属性名称:-- comp-class

属性名称:-- comp-name

属性名称:-- cross-domain-policy-file

属性名称:-- data-repo-pool-size

属性名称:-- debug

属性名称: -debug-packages

属性名称: -domain-filter-policy

属性名称:-- elements-number-limit

属性名称: -ext-comp

属性名称:-- extcomp-repo-class

属性名称:-- external

属性名称: -hardened-mode

属性名称: -max-queue-size

物业名称:-- monitoring

属性名称: -net-buff-high-throughput

属性名称: -net-buff-standard

属性名称: --new-connections-throttling

属性名称:-- nonpriority-queue

属性名称:-- queue-implementation

属性名称: -roster-implementation

属性名称:-- s2s-ejabberd-bug-workaround-active

属性名称: -s2s-secret

属性名称:-- s2s-skip-tls-hostnames

属性名称:-- script-dir

属性名称:-- sm-cluster-strategy-class

属性名称: -sm-plugins

属性名称:-- sm-threads-pool

属性名称: -ssl-certs-location

属性名称:-- ssl-container-class

属性名称:-- ssl-def-cert-domain

属性名称: -stats-history

属性名称:-- stringprep-processor

属性名称:-- test

属性名称: -tigase-config-repo-class

属性名称: -tigase-config-repo-uri

属性名称:-- tls-jdk-nss-bug-workaround-active

物业名称:-- trusted

属性名称:-- user-db

属性名称:-- user-db-uri

属性名称: -user-domain-repo-pool

属性名称: -user-repo-pool

属性名称:-- user-repo-pool-size

属性名称:-- vhost-anonymous-enabled

属性名称: -vhost-max-users

属性名:-- vhost-message-forward-jid

属性名称:-- vhost-presence-forward-jid

属性名称:-- vhost-register-enabled

属性名称:-- vhost-tls-required

属性名称: -virt-hosts

属性名称: -watchdog_delay

属性名称: -watchdog_ping_type

属性名称:-- watchdog_timeout

属性名称: config-type


标签:

上一篇: tigase.sh的启动文件-tigase.conf 第5章配置---7.1.2版本
下一篇: Tigase脚本选择配置开机启动 第3章 ---7.1.2版本

相关文章暂无相关
评论列表暂无评论
发表评论
验证码

«   2024年4月   »
1234567
891011121314
15161718192021
22232425262728
2930
控制面板
您好,欢迎到访网站!
  查看权限
网站分类
搜索
最新留言
    文章归档
    网站收藏
    友情链接
    • RainbowSoft Studio Z-Blog
    • 订阅本站的 RSS 2.0 新闻聚合
    ︿
    Top