Tigase 8.0开发环境搭建

源代码下载地址[en]Source code download address
https://repository.tigase.org/git/tigase-server.git 小编现在一直没有下载成功(8.0)
公文地址[en]Official document address
https://docs.tigase.net/tigase-server/8.0.0/
eclipse 配置git
eclipse 下载tigase源码
https://docs.tigase.net/tigase-server/8.0.0/Development_Guide/html/#hackingTigase Tigase 官方二次开发文档
https://blog.csdn.net/cdnight/article/details/85222028 xmpp即时通信开发—1、tigase源代码的编译—idea+postgresql+gradle
https://www.cnblogs.com/eyecool/p/7266411.html?utm_source=itdadao&utm_medium=referral 小编下载8.0还是没有成功
https://blog.csdn.net/lylwo317/article/details/45170509
在官网下载时,总是会提示需要账号密码、来源是否关闭、权限不正确。[en]When downloading on the official website, it is always prompted that the account password is required, whether the source is disabled, and the permission is incorrect.
git下载地址
https://github.com/nnjoshi14/tigase-mobilemessenger
https://github.com/jooejooe/tigase-mobilemessenger
https://tigase.tech/projects/tigase-server/files 官方部署文件
https://docs.tigase.net/tigase-server/8.0.0/Administration_Guide/html/#QuickStart Tigase管理指南
https://blog.csdn.net/fy_401/article/details/61201190 Tigase手动安装过程

Plugin execution not covered by lifecycle configuration: org.codehaus.gmaven
解决方案:[en]Solution:
https://yq.aliyun.com/articles/45447
https://www.cnblogs.com/whx7762/p/7903226.html
https://blog.csdn.net/xyr05288/article/details/79569183
https://blog.csdn.net/mm_bit/article/details/50833599
https://blog.csdn.net/xxd851116/article/details/25197373

Tigase 8.0开发环境搭建
https://blog.csdn.net/lqglqglqg/article/details/43267757 tigase集群配置 Tigase XMPP Server configuration properties
https://blog.csdn.net/cdnight/article/details/85072283 tigase客户端之smack4.3用法【草稿】 JXMPP
https://blog.csdn.net/jerry0827/article/details/8860716 Tigase客户端Jaxmpp的简单使用(二)
https://blog.csdn.net/sunweijm/article/details/72329709 tigase使用message-archiving组件进行消息存储,版本7.2.0-SNAPSHOT
https://blog.csdn.net/lqglqglqg/article/details/41046279 tigase增加离线消息和保存历史记录
https://blog.csdn.net/jerry0827/article/details/8860745 Tigase客户端Jaxmpp使用之群聊(四)
https://blog.csdn.net/hurryjiang/article/details/47974445 Tigase开发笔记2:Tigase组件详解
https://blog.csdn.net/wenmeishuai/article/details/46327163 XMPP之tigase源码部署
https://linyu19872008.iteye.com/blog/1681508 eclipse部署tigase源码
http://blog.sina.com.cn/s/blog_6b5b4a480102wpsr.html Tigase开发笔记:Tigase组件详解 (2017-05-03 16:32:26)
https://weibo.com/p/2304186b5b4a480102wpsr
https://blog.csdn.net/nitianwulai/article/details/50418677 深入认识Tigase XMPP Server
https://build.tigase.net/nightlies/dists/latest/
https://build.tigase.net/
https://maven-repo.tigase.net/#browse~release
https://docs.tigase.net/tigase-server/8.0.0/Administration_Guide/html/#QuickStart
https://tigase.net/blog-entry/tigase-xmpp-server-800-general-availability-released
https://docs.tigase.net/
https://build.tigase.net/jenkins/
https://docs.tigase.net/tigase-server/8.0.0/Administration_Guide/html/#_default_virtual_host_property_changes
https://docs.tigase.net/tigase-server/8.0.0/Administration_Guide/html/#_kernel_and_beans_configuration
https://docs.tigase.net/tigase-server/8.0.0/Development_Guide/html/#tigasekernel
https://docs.tigase.net/tigase-server/snapshot/Administration_Guide/html/#manualinstall
https://blog.csdn.net/yuruixin_china/article/details/76348812
更新时间:2019年5月30日18:30[en]Updated 18:30 on 30 May 2019

https://blog.csdn.net/DragonFy9/article/details/50012687 centos tigase连接mongodb
https://www.cnblogs.com/zfyouxi/p/4559016.html Tigase XMPP Server在CentOS部署与配置
https://blog.csdn.net/meiru8/article/details/38756969 Tigase数据库结构(1)
https://blog.csdn.net/hurryjiang/article/details/47974169 Tigase开发笔记1:深入认识XMPP协议
https://blog.csdn.net/hurryjiang/article/details/47973645 Tigase开发笔记4:Tigase Component组件开发
https://blog.csdn.net/u013934901/article/details/84696050 tigase源码分析4:packet处理
https://blog.csdn.net/wenmeishuai/article/details/46327163 XMPP之tigase源码部署
https://blog.csdn.net/lqglqglqg/article/details/41046405
tigase组件安装及调试过程
https://blog.csdn.net/chszs/article/details/49886247 Tigase负载均衡策略
https://blog.csdn.net/weixin_33948416/article/details/86313906 Tigase集群设置
https://blog.csdn.net/lqglqglqg/article/details/41046043 Tigase集群设置
https://blog.csdn.net/qq_38607742/article/details/83687502 nginx1.9 实现tigase的负载均衡搭建,TCP转发
https://blog.csdn.net/sunweijm/article/details/78184726 nginx实现tigase登录的简单负载均衡
https://blog.csdn.net/lqglqglqg/article/details/41046043 Tigase集群设置
https://blog.csdn.net/cdnight/article/details/85003059 tigase搭建开发环境
https://blog.csdn.net/lqglqglqg/article/details/43267757 tigase集群配置
https://blog.csdn.net/Irelia_/article/details/82387747 Tigase注册流程总结
https://blog.csdn.net/u010016848/article/details/29558927 tigase下的聊天室创建与配置
更新时间:2月31日7:26,工艺美术学院[en]Updated at 7:26 on May 31, February 19, Arts and Crafts Institute

解压下载的文件[en]Extract the downloaded file

<span class="hljs-selector-tag">tar</span> <span class="hljs-selector-tag">-zxvf</span> <span class="hljs-selector-tag">tigase-server-xxx-dist-max</span><span class="hljs-selector-class">.tar</span><span class="hljs-selector-class">.gz</span>
  • 1

<span class="hljs-selector-tag">gzip</span>  <span class="hljs-selector-tag">-d</span>  <span class="hljs-selector-tag">tigase-xxx</span><span class="hljs-selector-class">.tar</span><span class="hljs-selector-class">.gz</span>
<span class="hljs-selector-tag">tar</span> <span class="hljs-selector-tag">-xvf</span>  <span class="hljs-selector-tag">tigase-xxx</span><span class="hljs-selector-class">.tar</span>
  • 1
  • 2

https://blog.csdn.net/u011095110/article/details/76945016 tigase7.1.0 服务器在centos上搭建spark测试

CentOSer7 mongodb4.0(目前最新版本) 安装
https://www.mongodb.com/ 官网,选择 Resources 资源中的 文档 Documentation Guides MongoDB Server Installation
https://docs.mongodb.com/manual/installation/
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-red-hat/ mongodb 官网 安装教程

创建/etc/yum.repos.d/mongodb-org-4.0.repo[en]Create a / etc/yum.repos.d/mongodb-org-4.0.repo

<span class="hljs-section">[mongodb-org-4.0]</span>
<span class="hljs-attr">name</span> = MongoDB Repository
<span class="hljs-attr">baseurl</span> = https://repo.mongodb.org/yum/redhat/<span class="hljs-variable">$releasever</span>/mongodb-org/<span class="hljs-number">4.0</span>/x<span class="hljs-number">86_64</span>/
<span class="hljs-attr">gpgcheck</span> = <span class="hljs-number">1</span>
<span class="hljs-attr">enabled</span> = <span class="hljs-number">1</span>
<span class="hljs-attr">gpgkey</span> = https&#xFF1A;// www.mongodb.org/static/pgp/server-<span class="hljs-number">4.0</span>.asc
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
sudo yum <span class="hljs-keyword">install</span> -y mongodb-org
  • 1

默认情况下,MongoDB的运行用户帐号为mondeas,并使用以下默认目录:[en]By default, MongoDB runs under the mongod user account and uses the following default directory:

/var/lib/mongo (数据目录)
/var/log/mongodb (日志目录)

sudo service mongod <span class="hljs-keyword">start</span>  &#x542F;&#x52A8;
sudo service mongod <span class="hljs-keyword">stop</span>  &#x505C;&#x6B62;
sudo service mongod restart  &#x91CD;&#x542F;
  • 1
  • 2
  • 3

使用[en]Use

<span class="hljs-selector-tag">mongo</span>         &#x4E0D;&#x8981;&#x5199;&#x9519;(&#x5199;&#x6210;mongod)
  • 1
tail -f /var/<span class="hljs-built_in">log</span>/mongodb/mongod.<span class="hljs-built_in">log</span>   &#x67E5;&#x770B;&#x662F;&#x5426;&#x542F;&#x52A8;&#x6210;&#x529F;
  • 1

mongodb 卸载(默认安装路径)

sudo service mongod <span class="hljs-keyword">stop</span>
sudo yum erase $(rpm -qa | grep mongodb-org)
sudo rm -r /<span class="hljs-keyword">var</span>/<span class="hljs-keyword">log</span>/mongodb
sudo rm -r /<span class="hljs-keyword">var</span>/lib/mongo
  • 1
  • 2
  • 3
  • 4

跟随系统自动启动[en]Follow the system to start automatically

<span class="hljs-attribute">sudo</span> chkconfig mongod <span class="hljs-literal">on</span>
  • 1

mongodb 可视化工具
https://robomongo.org/download

Tigase 8.0开发环境搭建

更新时间:2019年6月2日2:40[en]Updated 2:40 on June 2, 2019

https://blog.csdn.net/dashen180309/article/details/81138730 MongoDB启动异常 报错 及 正确的关闭方法

Mongo的远程连接 mongodb 4.0.10
注:远程连接Mongo需要开启权限控制[en]Note: remote connection of Mongo needs to turn on permission control

<span class="hljs-selector-tag">mongo</span>
<span class="hljs-selector-tag">use</span> <span class="hljs-selector-tag">admin</span>;
#&#x9996;&#x5148;&#x6DFB;&#x52A0;&#x4E2A;&#x7BA1;&#x7406;&#x5458;&#x8D26;&#x53F7;&#xFF08;<span class="hljs-selector-tag">root</span>&#x6743;&#x9650;&#xFF09;&#xFF1A;
<span class="hljs-selector-tag">db</span><span class="hljs-selector-class">.createUser</span>({<span class="hljs-attribute">user</span>:<span class="hljs-string">"root"</span>,<span class="hljs-attribute">pwd</span>:<span class="hljs-string">"xxx"</span>,<span class="hljs-attribute">roles</span>:[{<span class="hljs-attribute">role</span>:<span class="hljs-string">"root"</span>,<span class="hljs-attribute">db</span>:<span class="hljs-string">"admin"</span>}]});
<span class="hljs-selector-tag">db</span><span class="hljs-selector-class">.auth</span>(<span class="hljs-string">"root"</span>,<span class="hljs-string">"xxx"</span>);&#x8FD4;&#x56DE;<span class="hljs-selector-tag">1</span>&#x8868;&#x793A;&#x6210;&#x529F;
#&#x6DFB;&#x52A0;&#x4E2A;&#x666E;&#x901A;&#x8D26;&#x53F7;&#xFF08;&#x8BFB;&#x5199;&#x6743;&#x9650;&#xFF09;&#xFF1A; &#xFF08;&#x547D;&#x4EE4;&#x4E2D;&#x7684;<span class="hljs-selector-tag">db</span> &#x4EE3;&#x8868;&#x7528;&#x6237;&#x6240;&#x5206;&#x914D;&#x7684;&#x6570;&#x636E;&#x5E93;&#xFF09;
<span class="hljs-selector-tag">db</span><span class="hljs-selector-class">.createUser</span>({<span class="hljs-attribute">user</span>:<span class="hljs-string">"abc"</span>,<span class="hljs-attribute">pwd</span>:<span class="hljs-string">"xxx"</span>,<span class="hljs-attribute">roles</span>:[{<span class="hljs-attribute">role</span>:<span class="hljs-string">"readWrite"</span>,<span class="hljs-attribute">db</span>:<span class="hljs-string">"admin"</span>}]});
<span class="hljs-selector-tag">db</span><span class="hljs-selector-class">.auth</span>(<span class="hljs-string">"abc"</span>,<span class="hljs-string">"xxx"</span>) ;&#x8FD4;&#x56DE;<span class="hljs-selector-tag">1</span>&#x8868;&#x793A;&#x6210;&#x529F;
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8

停止服务[en]Out of Service

service mongod <span class="hljs-keyword">stop</span>
  • 1

修改/etc/mongod.conf配置文件[en]Modify / etc/mongod.conf configuration file

<span class="hljs-attribute">vi</span> /etc/mongod.conf
  • 1
<span class="hljs-attr">net:</span>
<span class="hljs-attr">    bindIp:</span> <span class="hljs-number">0.0</span><span class="hljs-number">.0</span><span class="hljs-number">.0</span>    <span class="hljs-string">&#x6CE8;&#x610F;bindIp&#xFF1A;&#x540E;&#x9762;&#x6709;&#x7A7A;&#x683C;&#xFF0C;&#x7A7A;&#x683C;</span>
<span class="hljs-attr">serurity:</span>
<span class="hljs-attr">     authorization:</span> <span class="hljs-string">enabled</span>
<span class="hljs-attr">setParameter:</span>
<span class="hljs-attr">     enableLocalhostAuthBypass:</span> <span class="hljs-literal">true</span>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

请务必注意,冒号后面需要一个空格[en]Be sure to note that a space is needed after the colon

Tigase 8.0开发环境搭建
<span class="hljs-attribute">service</span> mongod restart
  • 1
<span class="hljs-attribute">mongo</span> --port <span class="hljs-number">27017</span> -u myUserAdmin -p <span class="hljs-string">'abc123'</span> --authenticationDatabase <span class="hljs-string">'admin'</span>
  • 1

mongo –version 4.0.10
cat /proc/version 查看CentOS版本

https://docs.mongodb.com/manual/tutorial/manage-users-and-roles/#authenticate-with-full-administrative-access-via-localhost

https://blog.csdn.net/wangdatao_/article/details/78077774

更新时间:2019年06月02日10:22[en]Updated 10:22 on June 2, 2019

https://blog.csdn.net/Navagate/article/details/45956293 XMPP协议 搭建Tigase开发环境

tigase 配置
vi etc/config.tdsl

<span class="hljs-symbol">'config</span>-<span class="hljs-class"><span class="hljs-keyword">type</span>' </span>= <span class="hljs-symbol">'setu</span>p'
<p>http () {
setup () {
<span class="hljs-symbol">'admin</span>-user' = <span class="hljs-symbol">'admi</span>n'
<span class="hljs-symbol">'admin</span>-password' = <span class="hljs-symbol">'12345</span>6'
}
}
dataSource {
<span class="hljs-keyword">default</span> () {
uri = <span class="hljs-symbol">'mongodb</span>:
}
}
userRepository {
<span class="hljs-keyword">default</span> () {}
}
authRepository {
<span class="hljs-keyword">default</span> () {}
}</p>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19

日志配置[en]Log configuration

debug = [ 'xmpp.XMPPIOService' ]
You can also have debugging switched on for many packages/classes at the same time:
debug = [ 'cluster' , 'xmpp.XMPPIOService' ]
Other packages you might be interested in are:
io can print out what is going on a very low level network level including TLS/SSL stuff.

xml would print the XML parser debugging data.

cluster would print all the clustering related stuff.

xmpp.impl would print logs from all plugins loaded to Tigase server.

Non-Tigase packages
To enable logging for your own packages from those different than Tigase, you have to use another option which has been made available for this:
debug-packages = [ your.com.package ]
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12

tigase.conf配置

TIGASE_OPTIONS=" --property-file etc/config.tdsl "
  • 1

系统服务[en]System service

For systemd-based linux distributions
Once installation is complete you may start Tigase as a typical systemd service using following command:
sudo systemctl start tigase-server
To stop it, you may run following command:
sudo systemctl stop tigase-server
It is also possible to enable service, to make it start during startup of the operating system:
sudo systemctl enable tigase-server
For other linux distributions
Once installation is complete, you should be able to start Tigase using the following command:
service tigase start
Tigase should begin running in the background. Since Tigase is now installed as a service, it can be controlled with any of the service commands, such as:
service tigase stop
service tigase restart
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19

参考配置[en]Reference configuration

# Enable cluster mode
--cluster-mode = true
# Enable debugging for server and xmpp.impl
--debug = 'server,xmpp.impl'
# Set list of virtual hosts (old way)
--virt-hosts = 'example.com,test-1.example.com,test-2.example.com'
# Configure list of administrator jids
admins = [ 'admin@zeus', 'http@macbook-pro-andrzej.local' ]
# Set config type
config-type = '--gen-config-def'
# Configure dataSource bean with database configuration
dataSource {
# Configure default data source (using default implementation so class is omitted)
default () {
uri = 'jdbc:postgresql://127.0.0.1/tigase?user=test&password=test&autoCreateUser=true'
}
# Configure data source with name exaple.com (will be used by domain example.com)
'example.com' () {
    uri = 'jdbc:mysq://127.0.0.1/example?user=test&password=test&autoCreateUser=true'
}

}
# Configure C2S component
c2s {
# Enable Stream Management bean
'urn:xmpp:sm:3' () {}
# Register tigase.server.xmppclient.SeeOtherHostDualIP as seeOtherHost bean
seeOtherHost (class: tigase.server.xmppclient.SeeOtherHostDualIP) {}

# Add additional port 5224 which is SSL port and disable port 5223
connections () {
    '5224' () {
             socket = ssl
          }
    '5223' (active: false) {}
}

}
# Configure HTTP API component
http {
# Set list of API keys
api-keys = [ 'test1234', 'test2356' ]
rest {
# Set value of environment property as a path to look for REST scripts
rest-scripts-dir = env('TIGASE_REST_SCRIPTS_DIR')
}
}
# Register pubsub-2 (class is passed as pubsub-2 name do not have default class assigned)
pubsub-2 (class: tigase.pubsub.cluster.PubSubComponentClustered) {
# Set configuration bean properties
pubsubConfig {
persistentPep = true
}
# Use tigase.pubsub.cluster.ClusteredNodeStrategy as advanced clustering strategy
strategy (class: tigase.pubsub.cluster.ClusteredNodeStrategy) {}
}
# Configure Session Manager
sess-man {
# Here we enable pep, urn:xmpp:mam:1 processors and disable message-archive-xep-0136 processor
pep () {}
'urn:xmpp:mam:1' () {}
message-archive-xep-0136 (active: false) {}
# Define class used as clustering strategy (it is different than default so class is required)
strategy (class: tigase.server.cluster.strategy.OnlineUsersCachingStrategy) {}

}
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72

debug配置

# Enable debugging for server and xmpp.impl
--debug = 'server,xmpp.impl,xmpp.XMPPIOService'
debug = [ 'cluster' , 'xmpp.XMPPIOService' ]
debug = [ 'server', 'xmpp.impl','xmpp.XMPPIOService','server.ext.handlers' ]
debug = [ 'xmpp.XMPPIOService' ]
debug-packages = [ your.com.package ]
debug = [ 'server', 'xmpp.init' ]
debug-packages = [ 'com.company.CustomPlugin' , 'com.company.custom' ]
It is possible to enable logging of dropped messages by adding spam to comma separate list of values for --debug property.

--debug=spam
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12

开始[en]Start

scripts/tigase.sh <span class="hljs-built_in">start</span> etc/tigase.conf
  • 1

停止奔跑[en]Stop running

scripts/tigase.sh stop etc/tigase.conf
  • 1

http://localhost:8080/setup/

tigase 配置
完成上面的配置后,点击上面的链接,一路转到下一步。[en]After following the above configuration, click the above link to next all the way.

Tigase 8.0开发环境搭建

单独填写您的主机IP[en]Fill in your host ip separately
centos登录的用户名,密码,选择你使用的数据库

数据库配置[en]Database configuration
下图如下:[en]The figure below is as follows

Tigase 8.0开发环境搭建
1、你将要创建的数据名
2、填写你的主机ip,这里使用mongodb的默认端口12707
3、填写你将要使用的mongodb账户 用户名A
4、填写你将要使用的mongodb账户 密码P
5、填写你的mongodb创建的具有root权限用户的账号
6、填写填写你的mongodb创建的具有root权限用户的密码
tigase会使用5、6自动创建3、4数据库用户及密码
点击下一步后,如果没有问题,检查界面将一路变为绿色。[en]After clicking next, if there is no problem, the check interface will turn green all the way.

Tigase 8.0开发环境搭建

数据库已自动创建[en]The database has been created automatically
重新启动服务[en]Restart the service

.<span class="hljs-regexp">/scripts/</span>tigase.sh stop
.<span class="hljs-regexp">/scripts/</span>{OS}<span class="hljs-regexp">/init.d/</span>tigase start etc/tigase.conf
  • 1
  • 2

where {OS} is your type of Linux, gentoo, debian, mandriva, or redhat
https://docs.tigase.net/tigase-server/snapshot/Administration_Guide/html/#manualinstall
https://blog.csdn.net/Pai_Da_Xing/article/details/88882059
https://blog.csdn.net/ahua186186/article/details/84447978 XMPP服务器的性能分析和优化
https://blog.csdn.net/chenxinxin2/article/details/84913266 Tigase即时通信组件性能测试(Tsung测试工具)

&#x67E5;&#x4E0B;&#x4F60;&#x73B0;&#x5728;&#x8FDE;&#x4E86;&#x591A;&#x5C11; &#x8FDE;&#x63A5;&#x6570;
<span class="hljs-keyword">show</span> <span class="hljs-keyword">variables</span> <span class="hljs-keyword">like</span> <span class="hljs-string">'%max_connections%'</span>;
 <span class="hljs-keyword">show</span> <span class="hljs-keyword">global</span> <span class="hljs-keyword">status</span> <span class="hljs-keyword">like</span> <span class="hljs-string">'Max_used_connections'</span>;
  • 1
  • 2
  • 3

https://blog.csdn.net/nginxs/article/details/77050959 Tigase-01 使用spark或spi登录Tigase服务器

Tigase8.0 配置Mongodb,数据库表中已经没有tig_paris表
官方工作人员回复:This works as expected as Tigase schema for MongoDB does not require tig_pairs table, see Tigase XMPP Server Schema topic in side https://docs.tigase.net/tigase-server/snapshot/Administration_Guide/html/#mongoDBSupport section.

Tigase 8.0开发环境搭建
好友关系信息[en]Friend relationship information
Tigase 8.0开发环境搭建
更新时间:2019年6月13日9:50[en]Updated 9:50 on 13 June 2019
帐户密码[en]Account password
Tigase 8.0开发环境搭建
更新于2019年10月21日11:26[en]Updated at 11:26 on October 21, 2019

https://blog.csdn.net/lqglqglqg/article/details/43267757 tigase集群配置
https://blog.csdn.net/chszs/article/details/49886247 Tigase负载均衡策略
https://blog.csdn.net/lqglqglqg/article/details/41046043 Tigase集群设置

tigase 8.0 修改端口

Tigase 8.0开发环境搭建

Windows eclipse环境搭建

将 tigase-mongodb.jar ,tigase-http-api-jetty.jar 导入
pom.xml 中添加依赖

<dependency>
    <groupId>org.mongodb</groupId>
    <artifactId>mongodb-driver</artifactId>
    <version>3.11.1</version>
</dependency>
  • 1
  • 2
  • 3
  • 4
  • 5

编辑C:WINDOWSSystem32DRIVERSETCHOSTS文件[en]Edit the C: Windows System32 drivers etc hosts file
增列[en]Add

127<span class="hljs-selector-class">.0</span><span class="hljs-selector-class">.0</span><span class="hljs-selector-class">.1</span>(&#x6216;&#x4F60;&#x81EA;&#x5DF1;&#x7535;&#x8111;&#x7684;<span class="hljs-selector-tag">ip</span>)       <span class="hljs-selector-tag">xxx</span><span class="hljs-selector-class">.com</span>
  • 1

注:xxx.com为您设置的XMPP服务器的域名,手机需要使用与电脑相同的网段。手机和电脑连接到同一个WiFi。[en]Note: the domain name of the xmpp server that xxx.com sets for you, the mobile phone needs to use the same network segment as the computer. The phone and the computer are connected to the same WIFI.
编辑config.tdsl文件[en]Edit the config.tdsl file

'config-type' = 'default'
'debug' = 'server','xmpp.impl','xmpp.XMPPIOService','server.ext.handlers.SASLProcessor','spam'
'default-virtual-host' = 'xxx.com'
dataSource () {
    default () {
        uri = 'mongodb://tigase_user:密码@ip地址/tigasedb'
    }
}
http () {
    setup () {
        'admin-password' = 'xxx..xx'
        'admin-user' = 'admin'
    }
}
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14

Tigase 8.0开发环境搭建
tigase.conf
#osgiEnabled=(true|false)
#osgiEnabled=false
OSGI=${osgiEnabled}
ENC="-Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8"
DRV="-Djdbc.drivers=com.mysql.jdbc.Driver:org.postgresql.Driver:org.apache.derby.jdbc.EmbeddedDriver"
#GC="-XX:+UseBiasedLocking -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:NewRatio=2 -XX:+CMSIncrementalMode -XX:ParallelCMSThreads=2 -XX:-ReduceInitialCardMarks -XX:CMSInitiatingOccupancyFraction=70  -XX:+UseCMSInitiatingOccupancyOnly"
#EX="-XX:+OptimizeStringConcat -XX:+DoEscapeAnalysis -XX:+UseNUMA"
REMOTE_DEBUG=" -agentlib:jdwp=transport=dt_socket,server=y,address=8000,suspend=n "
GC_DEBUG=" -XX:+PrintTenuringDistribution -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -Xloggc:logs/jvm.log -verbose:gc "
JMX_REMOTE_IP="-Djava.rmi.server.hostname=0.0.0.0"
AWS hostname resolver

JAVA_HOME="C:\Program Files\Java\jdk1.8.0_201"
CLASSPATH=""
Possible memory allocation improvements on some CentOS/RHEL systems
https:
export MALLOC_ARENA_MAX=4
You should explicitly set young gen size only if you know what you are doing and only after running Load Tests that confirms the assumption!

JAVA_YOUNG_GEN_EXPLICIT_SIZE=" -Xmn[g|m|k] "
PRODUCTION_HEAP_SETTINGS=" -Xms5g -Xmx5g ${JAVA_YOUNG_GEN_EXPLICIT_SIZE} " # heap memory settings must be adjusted on per deployment-base!

JAVA_XSS=" -Xss228k "
JAVA_DIRECT_MEMORY=" -XX:MaxDirectMemorySize=128m "
JAVA_METASPACE=" -XX:MaxMetaspaceSize=128m "
JAVA_OPTIONS="${GC} ${GC_DEBUG} ${REMOTE_DEBUG} ${EX} ${ENC} ${DRV} ${JMX_REMOTE_IP} -server ${PRODUCTION_HEAP_SETTINGS} ${JAVA_XSS} ${JAVA_DIRECT_MEMORY} ${JAVA_METASPACE} "
TIGASE_OPTIONS=" "
TIGASE_OPTIONS=" --property-file config.tdsl "
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35

https://segmentfault.com/a/1190000019632575 tigase7.02升级8.0
https://docs.tigase.org/#collapse-tigase-server-800-head tigase 配置 文档
https://docs.tigase.org/tigase-server/8.0.0/Administration_Guide/html/
https://docs.tigase.org/tigase-server/7.1.5/User_Guide/html/
https://docs.tigase.org/tigase-server/7.1.5/Administration_Guide/html/
https://docs.tigase.org/tigase-server/7.1.5/Development_Guide/html/
https://docs.tigase.org/tigase-server/7.1.5/Properties_Guide/html/
https://docs.tigase.net/tigase-server/stable-snapshot/Administration_Guide/html/# configuration_instructions_for_psi
https://docs.tigase.net/tigase-server/stable-snapshot/Administration_Guide/html/#pushConfig
https://blog.csdn.net/Pai_Da_Xing/article/details/88882059 XMPP tigase 8.0 与 strophe.js 测试Web聊天服务/即时通信
https://www.cnblogs.com/luffigo/p/5379142.html Eclipse中配置Git
https://blog.csdn.net/Irelia/article/details/81540787 Tigase开发环境部署
http://www.likecs.com/show-49340.html IDEA 上 Tigase8.0 源代码编译运行
https://www.cnblogs.com/eyecool/p/7266411.html Tigase-02 tigase-server7.1.0使用git 克隆下来,并在eclipse 上运行调试
https://www.cnblogs.com/eyecool/p/10407041.html Tigase8.0 源代码分析:一、启动篇
https://www.cnblogs.com/eyecool/p/10307879.html IDEA 上 Tigase8.0 源代码编译运行
https://blog.csdn.net/u010016848/article/details/41959405 windows平台下搭建tigase服务器
https://www.cnblogs.com/eyecool/p/9885062.html Tigase 发送消息的流程源码分析


            <link href="https://csdnimg.cn/release/phoenix/mdeditor/markdown_views-b6c3c6d139.css" rel="stylesheet">

原文地址:https://blog.csdn.net/w690333243/article/details/90550837

Original: https://www.cnblogs.com/jpfss/p/12186861.html
Author: 星朝
Title: Tigase 8.0开发环境搭建

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/6153/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

发表回复

登录后才能评论
免费咨询
免费咨询
扫码关注
扫码关注
联系站长

站长Johngo!

大数据和算法重度研究者!

持续产出大数据、算法、LeetCode干货,以及业界好资源!

2022012703491714

微信来撩,免费咨询:xiaozhu_tec

分享本页
返回顶部