Changeset View
Changeset View
Standalone View
Standalone View
doc/bitcoin-conf.md
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | |||||
rpcport=4000 | rpcport=4000 | ||||
``` | ``` | ||||
## Configuration File Path | ## Configuration File Path | ||||
The configuration file is not automatically created; you can create it using your favorite text editor. By default, the configuration file name is `bitcoin.conf` and it is located in the Bitcoin data directory, but both the Bitcoin data directory and the configuration file path may be changed using the `-datadir` and `-conf` command-line options. | The configuration file is not automatically created; you can create it using your favorite text editor. By default, the configuration file name is `bitcoin.conf` and it is located in the Bitcoin data directory, but both the Bitcoin data directory and the configuration file path may be changed using the `-datadir` and `-conf` command-line options. | ||||
The `includeconf=<file>` option in the `bitcoin.conf` file can be used to include additional configuration files. | The `includeconf=<file>` option in the `bitcoin.conf` file can be used to include additional configuration files. | ||||
### Default configuration file locations | |||||
Operating System | Data Directory | Example Path | |||||
-- | -- | -- | |||||
Windows | `%APPDATA%\Bitcoin\` | `C:\Users\username\AppData\Roaming\Bitcoin\bitcoin.conf` | |||||
Linux | `$HOME/.bitcoin/` | `/home/username/.bitcoin/bitcoin.conf` | |||||
macOS | `$HOME/Library/Application Support/Bitcoin/` | `/Users/username/Library/Application Support/Bitcoin/bitcoin.conf` | |||||
You can find an example bitcoin.conf file in [contrib/debian/examples/bitcoin.conf](../contrib/debian/examples/bitcoin.conf). |