Tigase is an XMPP server that can serve as a server for various IM (Instant messeging) tools (such as pandion, spark, etc.) that use the XMPP protocol.
The steps to install tigase in a Linux environment are as follows:
(1) Download the installation file
To https://projects.tigase.org/projects/tigase-server/files download the installation file, I downloaded the tigase-server-5.2.0-b3447-dist.tar.gz.
(2) Decompression
Create a folder, copy the tigase-server-5.2.0-b3447-dist.tar.gz to the folder, unzip it with the tar command, and get a folder named tigase-server-5.2.0-b3447.
(3) Initial setup
ETC is a more important folder, inside the tigase.conf and init.properties need us to modify and configure. Tigase.conf configuration is relatively simple, as long as the Java_home= "${java_home}" is set
Can:
The configuration of the init.properties is slightly more complicated:
Where Hzfedora is the machine name, Jdbc:mysql indicates that the connection is the MySQL database,//192.168.56.1:3306 is the MySQL database IP address and port number, user= followed by the database user name, password= followed by the database password , other things can be the same.
(4) Initializing the database
./scripts/db-create-mysql.sh database/mysql-installer-create-db.sql tigase Database user name tigase database password tigase database name MySQL root username mysql root password mysql IP address
(5) Start the server
./scripts/tigase.sh Start/stop/restart etc/tigase.conf
Indicates a successful start.
Run Pandion in Windows, set the server IP address and port number:
Register a new user and log in successfully:
Indicates that the Tigase server installation was successful!
If the Tigase server fails to run, and so on, it may be because the JDK version is too low, it is said to require more than JDK1.7 version, I installed the JDK1.8, or did not shut down the firewall.