This range is configurable see epmd. This small program is automatically started by Erlang, and is never stopped. To communicate with ejabberd, the script ejabberdctl starts a new Erlang node and connects to the Erlang node that holds ejabberd. In order for this communication to work, epmd must be running and listening for name requests in the port If you build a cluster of several ejabberd instances, each ejabberd instance is called an ejabberd node.
|Published (Last):||25 January 2011|
|PDF File Size:||5.12 Mb|
|ePub File Size:||4.75 Mb|
|Price:||Free* [*Free Regsitration Required]|
Change Computer Hostname ejabberdctl With the ejabberdctl command line administration script you can execute ejabberdctl commands described in the next section, ejabberdctl Commands and also many general ejabberd commands described in section ejabberd Commands. This means you can start, stop and perform many other administrative tasks in a local or remote ejabberd server by providing the argument —node NODENAME. The ejabberdctl script can be configured in the file ejabberdctl.
This file includes detailed information about each configurable option. See section Erlang Runtime System. The ejabberdctl script returns a numerical status code. Success is represented by 0, error is represented by 1, and other codes may be used for specific results. To restrict what commands can be executed; see API Permissions. This is the default method. This allows to execute commands interactively in the ejabberd server. If there is an ejabberd server running in the system, ejabberdctl shows the ejabberdctl commands described below and all the ejabberd commands available in that server see List of ejabberd Commands.
The ejabberdctl commands are: help: Get help about ejabberdctl or any available command. Try ejabberdctl help help. This system is configured using environment variables and command line parameters. The ejabberdctl administration script uses many of those possibilities. You can configure some of them with the file ejabberdctl. This section describes for reference purposes all the environment variables and command line parameters.
This path is used to read the file. If using -sname, specify either this option or -kernel inetrc filepath. The command line parameters: -sname ejabberd: The Erlang node will be identified using only the first part of the host name, i.
This is the preferable option in most cases. This is only useful if you plan to setup an ejabberd cluster with nodes in different networks. Useful for running daemons and background processes. The result is that this node is not considered part of the cluster. This is important when starting a temporary ctl or debug node.
You can find other options in the Erlang manual page erl -man erl. Those commands can be defined in any Erlang module and executed using any valid frontend. You probably want to restrict what commands can be executed, how and who; for that matter see API Permissions. List of ejabberd Commands ejabberd includes a few ejabberd Commands by default as listed below. When more modules are installed, new commands may be available in the frontends, see Administration API Commands for a more detailed list of commands.
Provide the delay in seconds, and the announcement quoted. This can be useful when an external tool is used for log rotation. See section Log Files. This means that, after running this command, you have to restart ejabberd. This command requires less memory than restore. This is not recommended for big databases, as it will consume much time, memory and processor.
Currently the following data is imported: vcards, accounts, rosters, private data e. Note: ejabberd must be compiled with optional tools support and package must provide optional luerl dependency. This might be useful when the number of offline messages is very high.
You will be asked to enter the username the full Jabber ID and password of an ejabberd user with administrator rights. After authentication you will see a page similar to the following screen. Before you get access to the Web Admin you need to enter as username, the JID and password from a registered user that is allowed to configure ejabberd.
Certain pages in the ejabberd Web Admin contain a link to a related section in the ejabberd Installation and Operation Guide. Change Computer Hostname ejabberd uses the distributed Mnesia database. Being distributed, Mnesia enforces consistency of its file, so it stores the name of the Erlang node in it see section Erlang Node Name. The name of an Erlang node includes the hostname of the computer. So, the name of the Erlang node changes if you change the name of the machine in which ejabberd runs, or when you move ejabberd to a different machine.
You have two ways to use the old Mnesia database in an ejabberd with new node name: put the old node name in ejabberdctl. Those example steps will backup, convert and load the Mnesia database. You need to have either the old Mnesia spool dir or a backup of Mnesia.
If you already have a backup file of the old database, you can go directly to step 5. You also need to know the old node name and the new node name. Now you can finally start ejabberd: ejabberdctl start Check that the information of the old database is available: accounts, rosters After you finish, remember to delete the temporary backup files from public directories.
ejabberdctl Command-Line Reference
Post-install operations — for example, register users and create admin accounts Quick Start The Binary Installer will deploy and configure a full featured ejabberd server and does not require any extra dependencies. It includes a stripped down version of Erlang. As such, when using ejabberd installer, you do not need to install Erlang separately. These tutorials assume installation on localhost for development purposes. In this document, when mentioning ejabberd-YY. MM, we assume YY. MM is the release number, for example
Man sollte also genau hinschauen und bei Bedarf die Option --no-install-recommends im Installationsbefehl nutzen. Dieser muss inkl. Der Domainteil der JID darf nicht mit angegeben werden, da er ja schon in der vorherigen Frage angegeben wurde. Probably ejabberd is configured for serving another hostname.