Install tigase in Linux
1. Download the installation package
Https://projects.tigase.org/projects/tigase-server/files
Select one from, and I chose tigase-server-5.1.0-beta2-b2555.tar.gz.
2. Upload the file to the Linux server and decompress it.
Tar-zxvf tigase-server-5.1.0-beta2-b2555.tar.gz
3. Enter the tigase directory.
CD tigase-server-5.1.0-beta2-b2555
4. Grant Permissions
Chmod U + X./scripts/tigase. Sh
Chmod U + X./scripts/db-create-mysql.sh
5. Set java_home
Vi etc/tigase. conf
Set java_home = "$ {java_home }"
Save and exit
6. Set the initialization configuration file.
VI etc/init. Properties
Config-type = -- gen-config-def
-- Admins = admin@tt.com
-- Virt-hosts = tt.com
-- DEBUG = Server
-- Monitoring = JMX: 9050, http: 9080, SNMP: 9060
-- User-DB = MySQL
-- User-db-uri = JDBC: mysql: // 127.0.0.1: 3306/tigasedb? User = root & Password = 111111 & useunicode = true & characterencoding = UTF-8
-- Comp-name-1 = muc
-- Comp-class-1 = tigase. MUC. muccomponent
-- Comp-name-2 = pubsub
-- Comp-class-2 = tigase. pubsub. pubsubcomponent
The above is an example
Save and exit
7. initialize the database
./Scripts/db-create-mysql.sh database/mysql-installer-create-db. SQL 111111 tigasedb root e4b3k7y8-123 localhost
The parameters are <Unknown> <Database Name> <Database User Name> <Database Password> <database address>
8. Start the tigase Server
./Scripts/tigase. Sh start ETC/tigase. conf
During this period, the following situations may occur:
Tigase. DB. dbinitexception: Problem initializing JDBC connection: NULL
At tigase. DB. JDBC. jdbcrepository. initrepository (jdbcrepository. Java: 828)
At tigase. DB. repositoryfactory. getuserrepository (repositoryfactory. Java: 318)
At tigase. server. xmppsession. sessionmanager. setproperties (sessionmanager. Java: 678)
At tigase. conf. configuratorabstract. Setup (configuratorabstract. Java: 880)
At tigase. conf. configuratorabstract. componentadded (configuratorabstract. Java: 218)
At tigase. conf. configuratorabstract. componentadded (configuratorabstract. Java: 71)
At tigase. server. abstractcomponentregistrator. addcomponent (abstractcomponentregistrator. Java: 115)
At tigase. server. messagerouter. addcomponent (messagerouter. Java: 131)
At tigase. server. messagerouter. addrouter (messagerouter. Java: 171)
At tigase. server. messagerouter. setproperties (messagerouter. Java: 697)
At tigase. conf. configuratorabstract. Setup (configuratorabstract. Java: 880)
At tigase. conf. configuratorabstract. componentadded (configuratorabstract. Java: 218)
At tigase. conf. configuratorabstract. componentadded (configuratorabstract. Java: 71)
At tigase. server. abstractcomponentregistrator. addcomponent (abstractcomponentregistrator. Java: 115)
At tigase. server. messagerouter. addregistrator (messagerouter. Java: 157)
At tigase. server. messagerouter. setconfig (messagerouter. Java: 603)
At tigase. server. xmppserver. Main (xmppserver. Java: 135)
Caused by: Java. Lang. nullpointerexception
At tigase. DB. JDBC. jdbcrepository. initrepository (jdbcrepository. Java: 784)
At tigase. DB. repositoryfactory. getuserrepository (repositoryfactory. Java: 318)
At tigase. server. xmppsession. sessionmanager. setproperties (sessionmanager. Java: 678)
At tigase. conf. configuratorabstract. Setup (configuratorabstract. Java: 880)
At tigase. conf. configuratorabstract. componentadded (configuratorabstract. Java: 218)
At tigase. conf. configuratorabstract. componentadded (configuratorabstract. Java: 71)
At tigase. server. abstractcomponentregistrator. addcomponent (abstractcomponentregistrator. Java: 115)
At tigase. server. messagerouter. addcomponent (messagerouter. Java: 131)
At tigase. server. messagerouter. addrouter (messagerouter. Java: 171)
At tigase. server. messagerouter. setproperties (messagerouter. Java: 697)
At tigase. conf. configuratorabstract. Setup (configuratorabstract. Java: 880)
At tigase. conf. configuratorabstract. componentadded (configuratorabstract. Java: 218)
At tigase. conf. configuratorabstract. componentadded (configuratorabstract. Java: 71)
At tigase. server. abstractcomponentregistrator. addcomponent (abstractcomponentregistrator. Java: 115)
At tigase. server. messagerouter. addregistrator (messagerouter. Java: 157)
At tigase. server. messagerouter. setconfig (messagerouter. Java: 603)
At tigase. server. xmppserver. Main (xmppserver. Java: 135)
The following operations may be performed on MySQL permissions:
Log on to MySQL and run
Mysql-u root-P passwod
Mysql> grant all privileges on *. * to root @ "%" identified by "passwd"
Mysql> flush privileges;
Run
./Scripts/tigase. Sh restart ETC/tigase. conf
Then register the connection with spark. It should be okay.