Tigase Introduction
There is nothing to introduce. From the source code, it may be the most streamlined xmpp im server, supporting clusters.
However, at that time, I was forced to give up using openfire because I was already using openfire and was busy with work and had no time to switch.
Tigase source code deployment
1. Download and install support
Jdk1.6 Maven 2.x/ 3.x
2. Obtain tigase Server Source Code
SVN Co https://svn.tigase.org/reps/tigase-server/trunk/ tigase-Server
3. Use Maven to compile the file (the file will be compiled to the target folder under the root directory)
MVN Assembly: Assembly
4. decompress the compiled JAR file.
CD target/
Tar-zxvf tigase-server-5.1.0-SNAPSHOT-prodenv.tar.gz
5. Configure Environment Variables
CD tigase-server-5.1.0-SNAPSHOT/
VI/etc/profile
Java_home =/usr/Java/jdk1.6.0 _ 29
Export java_home path
Tigase_home = "/home/workspace/tigase_server_dev/target/tigase-server-5.1.0-SNAPSHOT /"
Export tigase_home
And modify the jdkpath in the tigase. Sh file to java_home = "$ {java_home }"
6. Grant the execution permission
Chmod U + x bin /*
Grant all on *. * To root@127.0.0.1 identified by 'sm1018 ';
7. Configure init. properties // MYSQL as the database
Config-type = -- gen-config-def
-- Admins = admin@wemomo.com
-- Virt-hosts = wemomo.com
# $ Host_name
-- 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 = smm1018
8. Modify the/tigase_server/src/main/ASSEMBLY/prodenv. xml configuration file so that the Assembly can compile and package all the jar files and necessary configuration files.
9. Execute/tigase_server/database/mysql-create-db. SQL to create database
Execute/tigase_server/database/mysql-schema-4. SQL to create a table
Execute/tigase_server/database/mysql-schema-4-sp.schema to create functions and stored procedures (the script is problematic and needs to be changed to run properly)
// If SQL Execution fails, it takes a while to execute ...... I run it all in one segment.
10. Start the server
./Bin/tigase. Sh start ETC/tigase. conf
// Update the deployment code
SVN up; MVN clean; MVN Assembly: Assembly; CD target/; tar zxvf tigase-server-5.1.0-SNAPSHOT-prodenv.tar.gz; CD tigase-server-5.1.0-SNAPSHOT/; chmod 777 *; chmod 777 */*;
./Bin/tigase. Sh start ETC/tigase. conf
After the startup is successful, you can use XMPP clients such as PSI or spark for testing.