← 返回命令列表

Linux command

ejabberdctl 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

Start ejabberd server

sudo ejabberdctl start

Stop ejabberd server

sudo ejabberdctl stop

Check server status

ejabberdctl status

Register new user

ejabberdctl register [user] [domain] [password]

Unregister user

ejabberdctl unregister [user] [domain]

List registered users

ejabberdctl registered_users [domain]

Restart server

sudo ejabberdctl restart

说明

ejabberdctl is the command-line administration tool for ejabberd, an open-source XMPP (Jabber) instant messaging server. It manages server operations, user accounts, and configuration. The tool communicates with the running ejabberd node through Erlang RPC, allowing administration without accessing the web interface. It supports all administrative functions available through the web admin.

参数

start
Start ejabberd server.
stop
Stop ejabberd server.
restart
Restart ejabberd server.
status
Show server status.
register _user_ _host_ _password_
Register new user.
unregister _user_ _host_
Remove user.
registered_users _host_
List users on host.
connected_users
List online users.
kick_user _user_ _host_
Disconnect user.
reload_config
Reload configuration.
backup _file_
Backup database.
restore _file_
Restore database.

FAQ

What is the ejabberdctl command used for?

ejabberdctl is the command-line administration tool for ejabberd, an open-source XMPP (Jabber) instant messaging server. It manages server operations, user accounts, and configuration. The tool communicates with the running ejabberd node through Erlang RPC, allowing administration without accessing the web interface. It supports all administrative functions available through the web admin.

How do I run a basic ejabberdctl example?

Run `sudo ejabberdctl start` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does start do in ejabberdctl?

Start ejabberd server.