你好,游客 登录 注册 搜索
背景:
阅读新闻

Tigase服务器安装以及集群

[日期:2014-04-11] 来源:Linux社区  作者:fslc2004 [字体: ]

推荐阅读:CentOS 安装Tigase http://www.linuxidc.com/Linux/2014-03/97858.htm

安装第一台tigase服务器
1.
安装tigase服务器所需环境。


[root@tigase3~]# yum install java-1.7.0-openjdk.x86_64 java-1.7.0-openjdk-devel.x86_64
2.
下载tigase服务器软件包。


[root@tigase3tmp]#wget https://projects.tigase.org/attachments/download/1342/tigase-server-5.2.0-b3447.jar
3.
建立一个服务器安装路径。


root@tigase3tmp]# mkdir /opt/tigase-server
4.
开始安装软件。


[root@tigase3tmp]# java -jar tigase-server-5.2.0-b3447.jar –console

press1 to continue, 2 to quit, 3 to redisplay

按1继续

Theinstalled application needs a JDK. A java runtime environment (JRE)will be not sufficient.

Enterpath: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.51.x86_64

输入JDK的路径再按回车键

Thewizards you want to execute

Installationof the Tigase Server

[on,off]

选择:on

Configurationof the Tigase Server

[on,off]

选择:on

press1 to continue, 2 to quit, 3 to redisplay

按1继续

1. I accept the terms of this license agreement.

2. I do not accept the terms of this license agreement.

Choosenumber (1-2):输入1

press1 to continue, 2 to quit, 3 to redisplay

按1继续

Selecttarget path [/tmp]

/opt/tigase-server

设置tigase服务器的安装路径。

r => Redisplay menu

d => Done

 


Chooseaction:选d

0  [x] Defaultinstallation

1  [ ] Default plusextra components

2  [ ] Session Manageronly

3  [ ] Networkconnectivity only

inputselection:选1

YourXMPP (Jabber) domains [tigase3.test.com]

test.com            #设置XMPP域为test.com

YourXMPP (Jabber) domains [tigase3.test.com]

admin@test.com

Adminpassword [tigase]

 


0  [x] Derby (built-indatabase)

1  [ ] MySQL

2  [ ] PostgreSQL

3  [ ] SQLServer

4  [ ] Other...

inputselection:选2         

Advanced configurationoptions

[on, off]

Off

PostgreSQLsuper user account will be used only to create and configure databasefor the Tigase server. It will not be used by the Tigase server lateron.

 


Super user accountname: [root]

postgres                              #输入postgres数据库超级用户和密码.

WARNING:password will be visible while entering

Superuser password: postgres

WARNING:password will be visible while entering

Retypepassword: postgres

 


PostgreSQLdatabase details. It will be created automatically if it does notexist.

Databaseaccount: [tigase]                #输入存放tigase数据的数据库用户名和密码

tigase

Accountpassword: [tigase12]

tigase

Databasename: [tigasedb]

tigasedb

Databasehost or IP: [localhost]

127.0.0.1

Additionaldatabase parameters: []

 


press1 to continue, 2 to quit, 3 to redisplay

1

PerformingDB tasks

 


Checkingconnection to the database 

ConnectionOK

Checkingif the database exists 

ExistsOK

Checkingthe database schema 

Newschema loaded OK

Checkingwhether the database needs conversion 

Conversionnot needed

Apr05, 2014 3:55:48 AM tigase.db.jdbc.DataRepositoryImpl initRepository

INFO:Table schema found: public, database type: postgresql, databasedriver: org.postgresql.Driver

Apr05, 2014 3:55:48 AM tigase.db.jdbc.DataRepositoryImpl initRepository

INFO:Initialized database connection:jdbc:postgresql://127.0.0.1/tigasedb?user=postgres&password=postgres

Apr05, 2014 3:55:48 AM tigase.db.jdbc.DataRepositoryImpl initRepository

INFO:Table schema found: public, database type: postgresql, databasedriver: org.postgresql.Driver

Apr05, 2014 3:55:48 AM tigase.db.jdbc.DataRepositoryImpl initRepository

INFO:Initialized database connection:jdbc:postgresql://127.0.0.1/tigasedb?user=postgres&password=postgres

 


Allusers added

Postinstallation actions 

Finalizing...completed OK

Loadingsocks5 component schema 

Loadingsocks5 schema... completed OK

LoadingPubSub component schema 

LoadingPubSub schema... completed OK

 

 

 

Installwas successeful

applicationinstalled on /opt/tigase-server

[Console installation done ]
5.
启动tigase服务并添加到系统启动服务.


[root@tigase3tmp]# cd /opt/tigase-server/

[root@tigase3tigase-server]# ./scripts/tigase.sh start etc/tigase.conf

StartingTigase:

Tigaserunning pid=1217

nohup:redirecting stderr to stdout

[root@tigase3tigase-server]# cd /opt/tigase-server/scripts/RedHat/init.d

[root@tigase3init.d]# cp tigase /etc/init.d/

[root@tigase3init.d]# cd /etc/init.d/

[root@tigase3init.d]# chmod a+x tigase

[root@tigase3init.d]# useradd tigase

[root@tigase3init.d]# chown -R tigase:tigase /opt/tigase-server/logs

[root@tigase3init.d]# vi tigase

TIGASE_HOME=/opt/tigase-server    安装目录改为:/opt/tigase-server

[root@tigase3init.d]# chkconfig --add /etc/init.d/tigase

[root@tigase3init.d]# chkconfig tigase on

[root@tigase3init.d]# service tigase start

StartingTigase XMPP server

Tigasestarted[  OK  ]

linux
相关资讯       tigase 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款