CentOSインストールTigase

10118 ワード

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_64
Step 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 ACCEPT
iptables -I INPUT -p tcp --dport 3306 -j ACCEPT
iptables -I INPUT -p tcp --dport 5222 -j ACCEPT
Step 3☆ HTTP、MySQL 、 MySQL 、
chkconfig httpd on 
chkconfig mysqld on
service httpd start
service mysqld start
/usr/bin/mysql_secure_installation
# mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 10
Server version: 5.1.73 Source distribution

mysql> CREATE DATABASE tigase;
Query OK, 1 row affected (0.00 sec)
mysql> quit
Bye
Step 4☆ �b 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 <[email protected]>
- Bartosz Makowski <[email protected]>
- Wojciech Kapcia <[email protected]>
- Andrzej Wójcik <[email protected]>
- Wojciech Czubaszek <[email protected]>
- Eric Dziewa <[email protected]>
- Jacek Predki <[email protected]>
- 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: [email protected]
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 "copyright disclaimer" for the program, if necessary.For more information on this, and how to apply and follow the GNU AGPL, see.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]/opt/tigase-server
Select the packs you want to install:1 => Base, The base files2 => Unix Files, Files needed to run the server on Unix like systems3 => [x] Docs, The documentation4 => [x] Extras, Extras libraries, MUC, PubSub, STUN, Socks5, Message Archiving, ACS5 => [x] Groovy scripting, Various Groovy scripts extending server functionality6 => [x] Derby Database (DB included), Derby database (included) and JDBC driver7 => [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 system12 => [ ] Sources, The server source files, tools and libraries sources are not includedr => Redisplay menud => DoneChoose action: d
press 1 to continue, 2 to quit, 3 to redisplay1[ 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 installation1  [ ] Default plus extra components2  [ ] Session Manager only3  [ ] Network connectivity onlyinput selection:0Your XMPP (Jabber) domains [Tigase] Server administrators [admin@Tigase] Admin password [tigase]
0  [x] Derby (built-in database)1  [ ] MySQL2  [ ] PostgreSQL3  [ ] SQLServer4  [ ] Other...input selection:1-------------------Advanced configuration options[on, off]offpress 1 to continue, 2 to quit, 3 to redisplay1*** 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 entering
Super user password:  
WARNING: password will be visible while entering
Retype password:  

-------------------
MySQL database details. It will be created automatically if it does not exist.

Database account: [tigase]

Account password: [tigase12]
tigase
Database name: [tigasedb]
tigase
Database host or IP: [localhost]
127.0.0.1
Additional database parameters: []


press 1 to continue, 2 to quit, 3 to redisplay
Performing DB tasksChecking connection to the database  Connection OKChecking if the database exists  Doesn't exist, creating... OKChecking the database schema  New schema loaded OKChecking whether the database needs conversion  .......
All users addedPost installation actions  Finalizing... completed OKLoading socks5 component schema  Loading socks5 schema... completed OKLoading PubSub component schema  Loading PubSub schema... completed OK Step 5☆ Tigase

cd /opt/tigase-server/
./scripts/tigase.sh start etc/tigase.conf

Starting Tigase:
Tigase running pid=1676
nohup: redirecting stderr to stdout


cd /opt/tigase-server/scripts/redhat/init.d
cp tigase /etc/init.d/
cd /etc/init.d/
chmod a+x tigase

useradd tigase
chown -R tigase:tigase /opt/tigase-server/logs

vim tigase
TIGASE_HOME=/opt/tigase-server -- tigase

chkconfig --add /etc/init.d/tigase
chkconfig tigase on

/etc/init.d/tigase start
Starting Tigase XMPP server
Tigase started

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