By default monerod runs in a foreground and opens stdin for reading. By default monerod runs in a foreground.ĭo not require tty in a foreground mode. Typically, you will also want to manage monerod daemon with systemd or similar. This is useful for long-running / server scenarios. Go to background (decouple from the terminal). monerod -detach -pidfile=/run/monero/monerod.pid For defaults and details see data directory.įull path to the PID file. This is where the blockchain, log files, and p2p network memory are stored. By default monerod looks for nf in Monero data directory.įull path to data directory. Optionįull path to the configuration file. The following options will be helpful if you intend to have an always running node - most likely on a remote server or your own separate PC. Monerod defaults are adjusted for running it occasionally on the same computer as your Monero wallet. In production deployments, you would probably prefer to use established solutions like logrotate instead. Limit on the number of log files (=50 by default). In that case, set -max-log-file-size=0 to prevent monerod from managing the log files. Once log file grows past that limit, monerod creates the next log file with a UTC timestamp postfix -YYYY-MM-DD-HH-MM-SS. Soft limit in bytes for the log file (=104850000 by default, which is just under 100MB).
Temporarily changing to 1 allows for much better understanding of how the full node operates. For example, even with minimal 0, you may see some most important INFO entries. These are general presets and do not directly map to severity levels. monerod -log-file=/var/log/monero/mainnet/monerod.logĠ-4 with 0 being minimal logging and 4 being full tracing. Remember to run your wallet with -testnet as well.įull path to the log file. Remember to run your wallet with -stagenet as well.
There is also unimplemented update option shown by the help system. You should probably prefer your OS package manager to do the update, if possible.
Check for new versions of Monero and optionally download it. One of: disabled | notify | download (= notify by default). Show build timestamp and target operating system. Monero 'Oxygen Orion' (v0.17.1.8-release) The daemon itself does not group options in any way. The following groups are only to make reference easier to follow. monerod exit # ask daemon to exit gracefully Options ¶ Tail -f ~/.bitmonero/bitmonero.log # watch the logs
The mainnnet is when you want to deal with the real XMR./monerod -detach # run as a daemon in background monerod -stagenet exit # ask daemon to exit gracefully Tail -f ~/.bitmonero/stagenet/bitmonero.log # watch the logs The stagenet is what you should be using for learning and experimentation./monerod -stagenet -detach # run as a daemon in background Go to directory where you unpacked Monero. Their names follow the command_name pattern. Commands are executed against the running daemon. Their names follow the -option-name pattern.Ĭommands give access to specific services provided by the daemon. Options define how the daemon should be working. For any real business you should be running your own full node. However, there are privacy and reliability implications to using a remote, untrusted node. This is very handy for learning and experimentation. Such 3rd party will not be able to steal your funds. In fact, you can connect to a remote monerod instance provided by a semi-trusted 3rd party.
This allows you to run monerod on a separate computer or in the cloud. Monerod does not access your private keys - it is not aware of your transactions and balance. Monerod is entirely decoupled from your wallet. It downloads and validates the blockchain from the p2p network. The Monero daemon monerod keeps your computer synced up with the Monero network. Monerod - Reference ¶ Overview ¶ Connects you to Monero network ¶