我使用
安装了ejabberdroot @ arun-pc:/ home / arun#apt-get install ejabberd
这是我的/ etc / hosts文件
**127.0.0.1 localhost**
**172.30.13.130 arun-pc.pratian.com**
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
这是我在侦听端口部分 ejabbered.yml的配置
listen:
-
port: 6222
ip: "::"
module: ejabberd_c2s
##
## If TLS is compiled in and you installed a SSL
## certificate, specify the full path to the
## file and uncomment these lines:
##
certfile: "/etc/ejabberd/ejabberd.pem"
starttls: true
##
## To enforce TLS encryption for client connections,
## use this instead of the "starttls" option:
##
## starttls_required: true
##
## Custom OpenSSL options
##
protocol_options:
- "no_sslv3"
## - "no_tlsv1"
max_stanza_size: 65536
shaper: c2s_shaper
access: c2s
zlib: true
resend_on_timeout: if_offline
-
port: 6269
ip: "::"
module: ejabberd_s2s_in
后来我使用此命令注册了管理员
1. **ejabberdctl register admin arun-pc.pratian.com password**
User admin@arun-pc.pratian.com successfully registered
2。后来我在 ejabberd.yml中为管理员的ACL权限添加了
acl:
admin:
user:
- "admin@arun-pc.pratian.com"
在这些更改之后,我使用命令 ejabberdctl start 重新启动ejabberd 它成功重启,当我使用命令
检查状态时**root@arun-pc:/home/arun#ejabberd status**
here is the image of the issuse that i am facing
[Issue after changes][1]
[1]: https://i.stack.imgur.com/AFXaw.png