下载openfire
wgethttp://download.igniterealtime.org/openfire/openfire-3.9.3-1.i386.rpm
安装openfire
yum install -y /home/openfire-3.9.3-1.i386.rpm
安装运行库
yum install -y glibc.i686
添加开启启动
chkconfig openfire on
启动openfire服务
systemctlstart openfire.service
防火墙 IPtables添加端口
-A INPUT -p tcp -m state --state NEW -m tcp --dport 5222 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 5223 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 9091 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 9090 -j ACCEPT
重启防火墙iptables服务
systemctl start iptables
时间: 2024-11-03 21:36:30