xmpp服务端tigase在centos搭建过程

1.前期环境搭建
1.1 mysql 安装
mysql 安装: yum install mysql-server.x86_64
检查安装:rpm -ap | grep mysql
mysql启动:/etc/init.d/mysqld start
检查是否启动:netstat -anpl | grep 3306
修改root密码:mysqladmin -u root password ‘root’

1.2 jdk安装
至少要求1.6版本以上,安装详情就不表述了。

2.包下载 https://projects.tigase.org/projects/tigase-server/files
我选择的是 tigase-server-5.2.0-b3447.jar 这个版本,怕最新的包不稳定。

2.1 启动命令行安装
java -jar tigase-server-5.2.0-b3447.jar -console

 

三启动:
./scripts/tigase.sh start etc/tigase.conf 启动

查看是否启动:
#ps -ef | grep tigase
root 4341 1 99 11:52 pts/2 00:00:12 /usr/local/jdk/bin/java -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8 -Djdbc.drivers=com.mysql.jdbc.Driver:org.postgresql.Driver:org.apache.derby.jdbc.EmbeddedDriver -server -Xms100M -Xmx200M -XX:PermSize=32m -XX:MaxPermSize=256m -XX:MaxDirectMemorySize=128m -Dlogback.configurationFile=/root/soft/tigase/./etc/logback.xml -cp /root/soft/tigase/./jars/derby.jar:/root/soft/tigase/./jars/derbytools.jar:/root/soft/tigase/./jars/groovy-all.jar:/root/soft/tigase/./jars/hamcrest-core.jar:/root/soft/tigase/./jars/jdmkrt.jar:/root/soft/tigase/./jars/jstun.jar:/root/soft/tigase/./jars/jtds.jar:/root/soft/tigase/./jars/licence-lib.jar:/root/soft/tigase/./jars/mysql-connector-java.jar:/root/soft/tigase/./jars/postgresql.jar:/root/soft/tigase/./jars/tigase-acs.jar:/root/soft/tigase/./jars/tigase-acs-muc.jar:/root/soft/tigase/./jars/tigase-acs-pubsub.jar:/root/soft/tigase/./jars/tigase-extras.jar:/root/soft/tigase/./jars/tigase-message-archiving.jar:/root/soft/tigase/./jars/tigase-muc.jar:/root/soft/tigase/./jars/tigase-pubsub.jar:/root/soft/tigase/./jars/tigase-server.jar:/root/soft/tigase/./jars/tigase-socks5.jar:/root/soft/tigase/./jars/tigase-stats-collector-library.jar:/root/soft/tigase/./jars/tigase-stats-collector-provider.jar:/root/soft/tigase/./jars/tigase-stun.jar:/root/soft/tigase/./jars/tigase-server.jar tigase.server.XMPPServer –property-file etc/init.properties
root 4585 2305 0 11:52 pts/2 00:00:00 grep tigase

 

四 客户端下载:Pandion
http://rj.baidu.com/soft/detail/13256.html?ald

 

其他的也有:
spark,Psi
更多的见:http://xmpp.org/xmpp-software/clients/

参考文档:
1.http://www.tigase.org/content/installing-using-console-installer — 通过命令行配置
2.http://www.tigase.org/content/manual-installation-console-mode — 手工配置,不是通过命令行配置

 

发表评论

电子邮件地址不会被公开。 必填项已用*标注