← 返回命令列表

Linux command

prosodyctl 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Start server

prosodyctl start

Stop server

prosodyctl stop

Check status

prosodyctl status

Add user

prosodyctl adduser [user@domain.com]

Delete user

prosodyctl deluser [user@domain.com]

Change password

prosodyctl passwd [user@domain.com]

Check configuration

prosodyctl check

Reload configuration

prosodyctl reload

说明

prosodyctl is the administration tool for the Prosody XMPP/Jabber server, providing service control, user management, and configuration validation from the command line. It can start, stop, restart, and reload the server, with reload applying configuration changes without disconnecting users. User management commands handle XMPP account lifecycle: creating accounts with adduser, removing them with deluser, and resetting passwords with passwd. All user operations use JID (Jabber ID) format like user@domain.com. The check command validates the Prosody configuration, DNS records, and TLS certificates before applying changes, catching common setup errors. Certificate management commands help import, generate, and inspect TLS certificates needed for secure XMPP connections.

参数

start
Start Prosody.
stop
Stop Prosody.
restart
Restart Prosody.
status
Show status.
reload
Reload configuration.
adduser _JID_
Create user account.
deluser _JID_
Delete user account.
passwd _JID_
Change password.
check
Validate configuration.
about
Version and paths.
cert _subcommand_ _hosts_
Certificate management (request, generate, key, import).
register _USER_ _HOST_ _PASSWORD_
Register a user non-interactively.
unregister _USER_ _HOST_
Unregister a user non-interactively.
shell
Open the Prosody admin shell for runtime inspection.
--config _filename_
Use the specified config file instead of the default.
--verbose
Increase log level to show debug messages.
--quiet
Reduce log level to only show errors.

FAQ

What is the prosodyctl command used for?

prosodyctl is the administration tool for the Prosody XMPP/Jabber server, providing service control, user management, and configuration validation from the command line. It can start, stop, restart, and reload the server, with reload applying configuration changes without disconnecting users. User management commands handle XMPP account lifecycle: creating accounts with adduser, removing them with deluser, and resetting passwords with passwd. All user operations use JID (Jabber ID) format like user@domain.com. The check command validates the Prosody configuration, DNS records, and TLS certificates before applying changes, catching common setup errors. Certificate management commands help import, generate, and inspect TLS certificates needed for secure XMPP connections.

How do I run a basic prosodyctl example?

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

What does start do in prosodyctl?

Start Prosody.