CentOS 安装Tigase


Step 1☆ 环境搭建

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☆ 下载软件包

wget https://projects.tigase.org/attachments/download/1342/tigase-server-5.2.0-b3447.jar
Step 3☆ 开启防火墙端口

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!
- 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: http://www.tigase.org/
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.

-------------------

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

-------------------
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

 

 

      Tigase XMPP (Jabber) server ver 5.2.0-b3447


      About

      Copyright (C) 2004-2013 Tigase.org. <http://www.tigase.org/>

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

      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.

      The unique features of the Tigase server are


--- Press ENTER to continue --
You should also get your employer (if you work as a programmer) or school,
if any, to sign a &quot;copyright disclaimer&quot; for the program, if necessary.
For more information on this, and how to apply and follow the GNU AGPL, see
<http://www.gnu.org/licenses/>.
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

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

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.

You can optionally restart the server at the end of the process if you 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客户端网站下载  http://psi-im.org/download/

服务端;

http://www.tigase.org/content/manual-installation-console-mode
客户端
http://www.tigase.org/content/psi-initial-configuration

相关内容

    暂无相关文章