1. Create a service
Mapping: 7777,7070,5222,9090 Port
2. Download the rpm file
In http://download.igniterealtime.org/openfire/openfire-3.10.2-1.i386.rpm
Download OpenFire rpm files uploaded to CentOS via tae service file upload
3. Installing the RPM file
Log in to the host using Tae Webssh, CD to/ace/upload directory
Use
rpm -ivh openfire-3.10.2-1.i386.rpm
命令安装rpm文件
安装完成后完整的安装路径为:
/opt/openfire
4.启动openfire服务
通过以下命令启动服务:
/opt/openfire/bin/openfire.sh
显示:
/opt/openfire/bin/openfire.sh:/opt/openfire/jre/bin/java:/lib/ld-linux.so.2:bad ELF interpreter:no such file or Directory/opt/openfire/bin/openfire.sh:line 165:/opt/openfire/jre/bin/java:success
Startup failure, execute the following command: (this is due to the system environment, the system is 64-bit, the file in the package is 32-bit)
yum install libldb.i686
此时已经可以使用以下命令进行启动了:
/etc/init.d/openfire restart|status|start|stop
但是由于我们是通过ssh操作的,所以上边这个命令启动之后,等我们离开ssh客户端,openfire会自动关闭,所以,此时需要运行一下命令(将openfire.sh提交到后台去运行):
setsid /opt/openfire/bin/openfire.sh &
启动成功
5.检验
关闭ssh之后,就可以使用IP+9090检查openfire是否已经启动。由于TAE只有80端口可以使用域名访问,其他端口只能通过ip访问。如何查询ip呢,在tae控制台下服务配置中就可以看到
6. Modify Java Memory for OpenFire
The default OpenFire configuration of the JVM memory is 256M, if you want to modify this value, you need to modify the OpenFire located under/etc/sysconfig/openfire file
Use VI to modify the command as follows:
Vi/etc/sysconfig/openfire
Remove
#OPENFIRE_OPTS = "-xmx1024m"
# in front of this line, modified to 512m
Openfire_opts= "-xmx512m"
Restart the service.
Ali hundred Chuan-tae installation OpenFire service record