Ti瓦斯e服务器安装以至集群

Step 1☆ 景况搭建

引入阅读:CentOS 安装Ti瓦斯e

yum install httpd mysql mysql-server php php-* yum install
java-1.7.0-openjdk.x86_64 java-1.7.0-openjdk-devel.x86_64Step 2☆
下载软件包

安装第一台ti瓦斯e服务器

wget

Step 3☆ 开启防火墙端口

  1. Ti瓦斯e服务器安装以至集群。设置ti瓦斯e服务器所需景况。

iptables -I INPUT -p tcp –dport 80 -j ACCEPTiptables -I INPUT -p tcp
–dport 3306 -j ACCEPTiptables -I INPUT -p tcp –dport 5222 -j ACCEPT
Step 3☆运行HTTP、MySQL服务、设置MySQL密码、制造数据库
chkconfig httpd on chkconfig mysqld onservice httpd startservice mysqld
start/usr/bin/mysql_secure_installation
# mysql -u root -pEnter password: Welcome to the MySQL monitor. 
Commands end with ; or \g.Your MySQL connection id is 10Server version:
5.1.73 Source distributionmysql> CREATE DATABASE tigase;Query OK, 1
row affected (0.00 sec)mysql> quitByeStep 4☆ 软件安裝
java -jar tigase-server-5.2.0-b3447.jar -console
Welcome to the installation of Tigase XMPP (Jabber) Server
5.2.0-b3447!

[[email protected]~]#
yum install java-1.7.0-openjdk.x86_64
java-1.7.0-openjdk-devel.x86_64

  • Artur Hefczyc <artur.hefczyc@tigase.org>
  • Bartosz Makowski <bmalkowski@tigase.pl>
  • Wojciech Kapcia <wojciech.kapcia@tigase.org>
  • Andrzej Wójcik <andrzejw@tigase.org>
  • Wojciech Czubaszek <wojciech.czubaszek@tigase.org>
  • Eric Dziewa <eric.dziewa@tigase.org>
  • Jacek Predki <jacek.predki@tigase.com>
  • Piotr Kontek
  • Alexander Gnauck
  • Tomasz Sterna
  • Mateusz Fioka
  • David Pache
  • Peter Sandstrm
  • Yonas Yanfa
    The homepage is at:
    press 1 to continue, 2 to quit, 3 to redisplay
    The installed application needs a JDK. A java runtime environment (JRE)
    will be not sufficient.
    Enter path: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.51.x86_64
    *** Select what you want to do next:
    On this panel you can specify whether you want to install only or
    configure already installed server or to do both. If you are just
    installing a server on your machine it is a good idea to do both steps.
  1. 下载ti瓦斯e服务器软件包。

[[email protected]]#wget

The wizards you want to execute
Installation of the Tigase Server
[on, off]
on
Configuration of the Tigase Server
[on, off]
on

  1. 树立二个服务器安装路线。

[email protected]]#
mkdir /opt/tigase-server

If you notice any problems please report them to address:
artur.hefczyc@tigase.org
press 1 to continue, 2 to quit, 3 to redisplay
1

  1. 发轫安装软件。

 

[[email protected]]#
java -jar tigase-server-5.2.0-b3447.jar –console

 

press1 to continue, 2 to quit, 3 to redisplay

      Tigase XMPP (Jabber) server ver 5.2.0-b3447

按1继续

      About

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

      Copyright (C) 2004-2013 Tigase.org. <;

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

      The Tigase Jabber/XMPP Server is Open Source and Free (AGPLv3)
Java based server.

输入JDK的门路再按回车键

      The server offers complete implementation of the XMPP protocol
with a long list
      of extensions. Effcient, reliable and very extensible can be
easily integrated
      it with your systems.

Thewizards you want to execute

      The unique features of the Tigase server are

Installationof the Tigase Server

— Press ENTER to continue —
You should also get your employer (if you work as a programmer) or
school,
if any, to sign a "copyright disclaimer" for the program, if
necessary.
For more information on this, and how to apply and follow the GNU AGPL,
see
<;.
1.  I accept the terms of this license agreement.
2.  I do not accept the terms of this license agreement.
美高梅开户网址 ,Choose number (1-2): 1

[on,off]

Select target path [/tmp]
/home/user/tigase-server
Select the packs you want to install:

选择:on

1 => Base, The base files
2 => Unix Files, Files needed to run the server on Unix like
systems
3 => [x] Docs, The documentation
4 => [x] Extras, Extras libraries, MUC, PubSub, STUN, Socks5,
Message Archiving, ACS
5 => [x] Groovy scripting, Various Groovy scripts extending server
functionality
6 => [x] Derby Database (DB included), Derby database (included)
and JDBC driver
7 => [x] MySQL Database driver (DB not included), MySQL JDBC driver
(MySQL has to be installed separately)
8 => [x] PostgreSQL Database driver (DB not included), PostgreSQL
JDBC driver (PostgreSQL has to be installed separately)
9 => [x] SQL Server Database driver (DB not included), SQL Server
JDBC driver (SQL Server has to be installed separately)
10 => [ ] OSGi dependencies, If you intend to run Tigase in OSGi
mode you need additional libraries. Enabling this Pack will also setup
configuration files to start Tigase XMPP server in OSGi mode.
11 => [ ] HTTP API Component, Interface for the service
administration, monitoring and exchange data between Tigase and external
system
12 => [ ] Sources, The server source files, tools and libraries
sources are not included
r => Redisplay menu
d => DoneChoose action: d
press 1 to continue, 2 to quit, 3 to redisplay
1
[ Starting to unpack ]
[ Processing package: Base (1/9) ]
[ Processing package: Unix Files (2/9) ]
[ Processing package: Docs (3/9) ]
[ Processing package: Extras (4/9) ]
[ Processing package: Groovy scripting (5/9) ]
[ Processing package: Derby Database (DB included) (6/9) ]
[ Processing package: MySQL Database driver (DB not included) (7/9)
]
[ Processing package: PostgreSQL Database driver (DB not included)
(8/9) ]
[ Processing package: SQL Server Database driver (DB not included)
(9/9) ]
[ Unpacking finished ]
Based on your selection here more configuration options might be
presented later on. After the configuration is complete init.properties
file will be created.

Configurationof the Tigase Server

You can optionally restart the server at the end of the process if you

[on,off]

like.

0  [x] Default installation
1  [ ] Default plus extra components
2  [ ] Session Manager only
3  [ ] Network connectivity only
input selection:
0
Your XMPP (Jabber) domains [Tigase]

Server administrators [admin@Tigase]

Admin password [tigase]

0  [x] Derby (built-in database)
1  [ ] MySQL
2  [ ] PostgreSQL
3  [ ] SQLServer
4  [ ] Other…
input selection:
1


Advanced configuration options
[on, off]
off
press 1 to continue, 2 to quit, 3 to redisplay
1
*** Database configuration:
You have selected MySQL database. This database needs additional
configuration parameters. Please enter all required information.


——————-MySQL super user account will be used only to create
and configure database for the Tigase server. It will not be used by the
Tigase server later on.Super user account name: [root] WARNING:
password will be visible while enteringSuper user password:  WARNING:
password will be visible while enteringRetype password: 
——————-MySQL database details. It will be created
automatically if it does not exist.Database account: [tigase] Account
password: [tigase12] tigaseDatabase name: [tigasedb] tigaseDatabase
host or IP: [localhost] 127.0.0.1Additional database parameters: []
press 1 to continue, 2 to quit, 3 to redisplay
Performing DB tasks

Checking connection to the database 
Connection OK
Checking if the database exists 
Doesn’t exist, creating… OK
Checking the database schema 
New schema loaded OK
Checking whether the database needs conversion 

…….
All users added
Post installation actions 
Finalizing… completed OK
Loading socks5 component schema 
Loading socks5 schema… completed OK
Loading PubSub component schema 
Loading PubSub schema… completed OK

Step 5☆ 启动Tigase服务

cd /home/user/tigase-server/./scripts/tigase.sh start
etc/tigase.confStarting Tigase: Tigase running pid=1676nohup:
redirecting stderr to stdout
Step 6☆ 客商端安装

前去PSI顾客端网址下载 

服务端;

客户端

更多CentOS有关消息见CentOS 专项论题页面 http://www.linuxidc.com/topicnews.aspx?tid=14

美高梅开户网址 1

选择: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

安装ti瓦斯e服务器的设置路线。

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]

[email protected]

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]               
#输入存放ti瓦斯e数据的数据库顾客名和密码

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 ]

  1. 启航ti瓦斯e服务并增多到系统运转服务.

[[email protected]]#
cd /opt/tigase-server/

[[email protected]]#
./scripts/tigase.sh start etc/tigase.conf

StartingTigase:

Tigaserunning pid=1217

nohup:redirecting stderr to stdout

[[email protected]]#
cd /opt/tigase-server/scripts/RedHat/init.d

[[email protected]]#
cp tigase /etc/init.d/

[[email protected]]#
cd /etc/init.d/

[[email protected]]#
chmod a+x tigase

[[email protected]]#
useradd tigase

[[email protected]]#
chown -R tigase:tigase /opt/tigase-server/logs

[[email protected]]#
vi tigase

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

[[email protected]]#
chkconfig –add /etc/init.d/tigase

[[email protected]]#
chkconfig tigase on

[[email protected]]#
service tigase start

StartingTigase XMPP server

Tigasestarted[  OK  ]

  • 1
  • 2
  • 下一页

安装Tigase
安装第一台ti瓦斯e服务器 1. 安装ti瓦斯e服务器所需情形。
[[email protected]~]#
yum install java-1.7.0-openjdk.x86_64 java-1.7.0-openjdk-…

发表评论

电子邮件地址不会被公开。 必填项已用*标注

网站地图xml地图