Recommended: Install Tigase in CentOS
Install the first tigase Server
1.
Environment required for tigase Server installation.
[Root @ tigase3 ~] # Yum install java-1.7.0-openjdk.x86_64 java-1.7.0-openjdk-devel.x86_64
2.
Download the tigase server software package.
[Root @ tigase3tmp] # wget https://projects.tigase.org/attachments/download/1342/tigase-server-5.2.0-b3447.jar
3.
Create a Server installation path.
Root @ tigase3tmp] # mkdir/opt/tigase-server
4.
Start installing the software.
[Root @ tigase3tmp] # java-jar tigase-server-5.2.0-b3447.jar-console
Press1 to continue, 2 to quit, 3 to redisplay
Press 1 to continue
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
Enter the JDK path and press Enter.
Thewizards you want to execute
Installationof the Tigase Server
[On, off]
Select: on
Configurationof the Tigase Server
[On, off]
Select: on
Press1 to continue, 2 to quit, 3 to redisplay
Press 1 to continue
1. I accept the terms of this license agreement.
2. I do not accept the terms of this license agreement.
Choosenumber (1-2): Input 1
Press1 to continue, 2 to quit, 3 to redisplay
Press 1 to continue
Selecttarget path [/tmp]
/Opt/tigase-server
Set the installation path of the tigase server.
R => Redisplay menu
D => Done
Chooseaction: Select d
0 [x] Defaultinstallation
1 [] Default plusextra components
2 [] Session Manageronly
3 [] Networkconnectivity only
Inputselection: select 1
YourXMPP (Jabber) domains [tigase3.test.com]
Test.com # Set the XMPP domain to 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: select 2
Advanced configurationoptions
[On, off]
Off
Your sqlsuper user account will be used only to create and configure databasefor the Tigase server. It will not be used by the Tigase server laton.
Super user accountname: [root]
Postgres # enter the Super User and password of the postgres database.
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] # enter the database user name and password for storing tigase data
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.
Start the tigase service and add it to the system startup service.
[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 Installation Directory changed to:/opt/tigase-server
# Chkconfig -- add/etc/init. d/tigase
# Chkconfig tigase on
[Root@tigase3init.d] # service tigase start
StartingTigase XMPP server
Tigasestarted [OK]