原文位置http://www.tigase.org/content/manual-installation-console-mode
1. 先从服务器端下载tigase安装包https://projects.tigase.org/projects/tigase-server/files
目前下载的是tigase-server-5.1.3-b2985.tar.gz
2.tar
-xzvf tigase-server-5.1.3-b2985.
tar
.gz 解压缩文件
3. 到当前解压缩文件夹,并设置文件执行命令的属性
chmod
u+x ./scripts/tigase.sh
4. 查看文件属性
ls
-l
04 | -rw-r--r-- 1 265K 2008-12-15 22:24 ChangeLog<br> |
05 | -rw-r--r-- 1 37K 2008-12-15 22:24 License.html<br> |
06 | -rw-r--r-- 1 1.1K 2008-12-15 22:24 README<br> |
07 | drwxr-xr-x 6 204 2009-02-03 13:25 certs/<br> |
08 | drwxr-xr-x 22 748 2009-02-03 13:25 database/<br> |
09 | drwxr-xr-x 3 102 2008-12-15 22:24 docs/<br> |
10 | drwxr-xr-x 4 136 2009-02-03 13:25 <strong>etc/</strong><br> |
11 | drwxr-xr-x 3 102 2009-02-03 13:25 jars/<br> |
12 | drwxr-xr-x 12 408 2009-02-03 13:25 libs/<br> |
13 | drwxr-xr-x 2 68 2008-12-15 22:24 logs/<br> |
14 | -rw-r--r-- 1 1.5K 2008-12-15 22:24 package.html<br> |
15 | drwxr-xr-x 7 238 2009-02-03 13:25 scripts/ |
6.编辑tigase.conf 修改 JAVA_HOME 到java的安装目录
8.编辑init.properties
config-
type
=--gen-config-def<br>
4 | --admins=admin@$HOST_NAME<br> |
5 | --virt-hosts = $HOST_NAME<br> |
6 | --debug=server |
启动服务器
./scripts/tigase.sh start etc/tigase.conf
停止服务器
./scripts/tigase.sh stop etc/tigase.conf