CINXE.COM

How to run a Monero (XMR) node | Monero.com Guides

<!DOCTYPE html><html lang="en-US"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=Edge"><link rel="stylesheet" href="/assets/css/just-the-docs-default.css"> <script src="/assets/js/vendor/lunr.min.js"></script> <script src="/assets/js/just-the-docs.js"></script><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="icon" href="/favicon.ico" type="image/x-icon"><title>How to run a Monero (XMR) node | Monero.com Guides</title><meta name="generator" content="Jekyll v4.3.0" /><meta property="og:title" content="How to run a Monero (XMR) node" /><meta property="og:locale" content="en_US" /><meta name="description" content="Monero.com guides and support resources" /><meta property="og:description" content="Monero.com guides and support resources" /><link rel="canonical" href="https://guides.monero.com/docs/tutorials/monero-node/" /><meta property="og:url" content="https://guides.monero.com/docs/tutorials/monero-node/" /><meta property="og:site_name" content="Monero.com Guides" /><meta property="og:type" content="website" /><meta name="twitter:card" content="summary" /><meta property="twitter:title" content="How to run a Monero (XMR) node" /> <script type="application/ld+json"> {"@context":"https://schema.org","@type":"WebPage","description":"Monero.com guides and support resources","headline":"How to run a Monero (XMR) node","publisher":{"@type":"Organization","logo":{"@type":"ImageObject","url":"https://guides.monero.com/images/Monero.com%20Logo.png"}},"url":"https://guides.monero.com/docs/tutorials/monero-node/"}</script> <script> (function(d,t) { var BASE_URL="https://app.chatwoot.com"; var g=d.createElement(t),s=d.getElementsByTagName(t)[0]; g.src=BASE_URL+"/packs/js/sdk.js"; g.defer = true; g.async = true; s.parentNode.insertBefore(g,s); g.onload=function(){ window.chatwootSDK.run({ websiteToken: 'gkFqokzjg6f1htFo3adRp9pg', baseUrl: BASE_URL }) } })(document,"script"); </script><body> <a class="skip-to-main" href="#main-content">Skip to main content</a> <svg xmlns="http://www.w3.org/2000/svg" class="d-none"> <symbol id="svg-link" viewBox="0 0 24 24"><title>Link</title><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path> </svg> </symbol> <symbol id="svg-menu" viewBox="0 0 24 24"><title>Menu</title><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-menu"><line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line> </svg> </symbol> <symbol id="svg-arrow-right" viewBox="0 0 24 24"><title>Expand</title><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><polyline points="9 18 15 12 9 6"></polyline> </svg> </symbol> <symbol id="svg-external-link" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-external-link"><title id="svg-external-link-title">(external link)</title><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line> </symbol> <symbol id="svg-doc" viewBox="0 0 24 24"><title>Document</title><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-file"><path d="M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"></path><polyline points="13 2 13 9 20 9"></polyline> </svg> </symbol> <symbol id="svg-search" viewBox="0 0 24 24"><title>Search</title><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-search"> <circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line> </svg> </symbol> <symbol id="svg-copy" viewBox="0 0 16 16"><title>Copy</title><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-clipboard" viewBox="0 0 16 16"><path d="M4 1.5H3a2 2 0 0 0-2 2V14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3.5a2 2 0 0 0-2-2h-1v1h1a1 1 0 0 1 1 1V14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3.5a1 1 0 0 1 1-1h1v-1z"/><path d="M9.5 1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h3zm-3-1A1.5 1.5 0 0 0 5 1.5v1A1.5 1.5 0 0 0 6.5 4h3A1.5 1.5 0 0 0 11 2.5v-1A1.5 1.5 0 0 0 9.5 0h-3z"/> </svg> </symbol> <symbol id="svg-copied" viewBox="0 0 16 16"><title>Copied</title><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-clipboard-check-fill" viewBox="0 0 16 16"><path d="M6.5 0A1.5 1.5 0 0 0 5 1.5v1A1.5 1.5 0 0 0 6.5 4h3A1.5 1.5 0 0 0 11 2.5v-1A1.5 1.5 0 0 0 9.5 0h-3Zm3 1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h3Z"/><path d="M4 1.5H3a2 2 0 0 0-2 2V14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3.5a2 2 0 0 0-2-2h-1v1A2.5 2.5 0 0 1 9.5 5h-3A2.5 2.5 0 0 1 4 2.5v-1Zm6.854 7.354-3 3a.5.5 0 0 1-.708 0l-1.5-1.5a.5.5 0 0 1 .708-.708L7.5 10.793l2.646-2.647a.5.5 0 0 1 .708.708Z"/> </svg> </symbol> </svg><div class="side-bar"><div class="site-header"> <a href="/" class="site-title lh-tight"><div class="site-logo"></div></a> <a href="#" id="menu-button" class="site-button"> <svg viewBox="0 0 24 24" class="icon"><use xlink:href="#svg-menu"></use></svg> </a></div><nav aria-label="Main" id="site-nav" class="site-nav"><ul class="nav-list"><li class="nav-list-item"><a href="/" class="nav-list-link">Home</a><li class="nav-list-item"><a href="#" class="nav-list-expander" aria-label="toggle links in App support category"> <svg viewBox="0 0 24 24"><use xlink:href="#svg-arrow-right"></use></svg> </a><a href="/docs/app-support/app-support/" class="nav-list-link">App support</a><ul class="nav-list "></ul><li class="nav-list-item"><a href="#" class="nav-list-expander" aria-label="toggle links in Glossary category"> <svg viewBox="0 0 24 24"><use xlink:href="#svg-arrow-right"></use></svg> </a><a href="/docs/glossary/glossary/" class="nav-list-link">Glossary</a><ul class="nav-list "><li class="nav-list-item "><a href="/docs/glossary/payment-id/" class="nav-list-link">Payment ID</a><li class="nav-list-item "><a href="/docs/glossary/transaction-key/" class="nav-list-link">Transaction key</a></ul><li class="nav-list-item active"><a href="#" class="nav-list-expander" aria-label="toggle links in Tutorials category"> <svg viewBox="0 0 24 24"><use xlink:href="#svg-arrow-right"></use></svg> </a><a href="/docs/tutorials/tutorials/" class="nav-list-link">Tutorials</a><ul class="nav-list "><li class="nav-list-item "><a href="/docs/tutorials/accept-monero-as-merchant/" class="nav-list-link">How to accept Monero (XMR) as a merchant</a><li class="nav-list-item "><a href="/docs/tutorials/prove-payment/" class="nav-list-link">How to prove a Monero (XMR) payment</a><li class="nav-list-item active"><a href="/docs/tutorials/monero-node/" class="nav-list-link active">How to run a Monero (XMR) node</a><li class="nav-list-item "><a href="/docs/tutorials/sync-faster/" class="nav-list-link">How to sync a Monero (XMR) wallet faster</a><li class="nav-list-item "><a href="/docs/tutorials/use-monero-with-vpn/" class="nav-list-link">Should I use Monero (XMR) with a VPN</a><li class="nav-list-item "><a href="/docs/tutorials/buy-vpn-privately-monero/" class="nav-list-link">Where to buy a VPN privately with Monero (XMR)</a></ul></ul><ul class="nav-list"><li class="nav-list-item external"> <a href="https://monero.com" class="nav-list-link external"> Monero.com <svg viewBox="0 0 24 24" aria-labelledby="svg-external-link-title"><use xlink:href="#svg-external-link"></use></svg> </a><li class="nav-list-item external"> <a href="https://guides.cakewallet.com" class="nav-list-link external"> Cake Wallet Guides <svg viewBox="0 0 24 24" aria-labelledby="svg-external-link-title"><use xlink:href="#svg-external-link"></use></svg> </a></ul></nav><footer class="site-footer"> This site uses <a href="https://github.com/just-the-docs/just-the-docs">Just the Docs</a>, a documentation theme for Jekyll.</footer></div><div class="main" id="top"><div id="main-header" class="main-header"><div class="search"><div class="search-input-wrap"> <input type="text" id="search-input" class="search-input" tabindex="0" placeholder="Search Monero.com Guides" aria-label="Search Monero.com Guides" autocomplete="off"> <label for="search-input" class="search-label"><svg viewBox="0 0 24 24" class="search-icon"><use xlink:href="#svg-search"></use></svg></label></div><div id="search-results" class="search-results"></div></div><nav aria-label="Auxiliary" class="aux-nav"><ul class="aux-nav-list"><li class="aux-nav-list-item"> <a href="https://monero.com" class="site-button" > Monero.com </a></ul></nav></div><div id="main-content-wrap" class="main-content-wrap"><nav aria-label="Breadcrumb" class="breadcrumb-nav"><ol class="breadcrumb-nav-list"><li class="breadcrumb-nav-list-item"><a href="/docs/tutorials/tutorials/">Tutorials</a><li class="breadcrumb-nav-list-item"><span>How to run a Monero (XMR) node</span></ol></nav><div id="main-content" class="main-content" role="main"><h1 id="how-to-run-a-monero-xmr-node"> <a href="#how-to-run-a-monero-xmr-node" class="anchor-heading" aria-labelledby="how-to-run-a-monero-xmr-node"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> How to run a Monero (XMR) node</h1><p>We strongly recommend running your own Monero node! Here is a simple guide for running a Monero node with Ubuntu.</p><h2 id="select-hardware"> <a href="#select-hardware" class="anchor-heading" aria-labelledby="select-hardware"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> Select hardware</h2><p>You don’t need fancy hardware to run a node that is only meant to handle your basic personal use, but we recommend the following:</p><ul><li>At least 256 GB of storage on an SSD<li>At least dual core, ideally quad core<li>At least 2 GB of RAM, ideally 4 GB<li>At least 10 Mbps connection, with at least 100 GB of monthly data</ul><p>We recommend running the node on your <strong>home network</strong>.</p><h2 id="install-ubuntu"> <a href="#install-ubuntu" class="anchor-heading" aria-labelledby="install-ubuntu"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> Install Ubuntu</h2><p>You can use another OS, but we will use Ubuntu for this guide.</p><p>Download the <a href="https://ubuntu.com/download/server">latest Ubuntu “LTS” release here</a>. For this guide, we are using the command line only version.</p><p>You will need to add this image to a flash drive. Here are guides for the operating system you are currently using:</p><ul><li><a href="https://tutorials.ubuntu.com/tutorial/tutorial-create-a-usb-stick-on-windows">Windows</a><li><a href="https://ubuntu.com/tutorials/create-a-usb-stick-on-macos">MacOS</a><li><a href="https://ubuntu.com/tutorials/create-a-usb-stick-on-ubuntu">Ubuntu</a></ul><p>Attach the flash drive to your Monero node computer, and <a href="https://lifehacker.com/how-to-boot-from-a-usb-drive-or-cd-on-any-computer-5991848">boot from USB</a>.</p><p>Follow the instructions to install Ubuntu Server. After you are done, turn off the computer, remove the flash drive, and turn it back on. Make sure it boots to the newly installed Ubuntu operating system.</p><h2 id="update-and-harden-ubuntu"> <a href="#update-and-harden-ubuntu" class="anchor-heading" aria-labelledby="update-and-harden-ubuntu"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> Update and harden Ubuntu</h2><p>Run these commands (one at a time) to update and harden Ubuntu:</p><div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>sudo apt-get update &amp;&amp; sudo apt-get upgrade -y sudo apt-get install -y ufw curl curl -fsSL https://get.docker.com -o get-docker.sh sudo sh get-docker.sh sudo usermod -aG docker $USER su - $USER sudo ufw default deny incoming sudo ufw default allow outgoing sudo ufw allow 18080/tcp sudo ufw allow 18081/tcp sudo ufw enable </code></pre></div></div><p>These will install Docker and enable a firewall.</p><h2 id="install-monerod"> <a href="#install-monerod" class="anchor-heading" aria-labelledby="install-monerod"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> Install monerod</h2><p>The Monero node software is called <code class="language-plaintext highlighter-rouge">monerod</code>.</p><p>You will need to decide if you want other people to be able to use your node for syncing and sending transactions. Doing so is good for the Monero network, but it will cost you more bandwidth.</p><h3 id="if-you-do-want-others-to-be-able-to-access-your-node"> <a href="#if-you-do-want-others-to-be-able-to-access-your-node" class="anchor-heading" aria-labelledby="if-you-do-want-others-to-be-able-to-access-your-node"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> If you DO want others to be able to access your node</h3><p>Run the following command:</p><div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>docker run -d --restart unless-stopped --name="monerod" -p 18080:18080 -p 18081:18081 -v bitmonero:/home/monero sethsimmons/simple-monerod:latest --rpc-restricted-bind-ip=0.0.0.0 --rpc-restricted-bind-port=18081 --no-igd --no-zmq --enable-dns-blocklist --public-node </code></pre></div></div><h3 id="if-you-dont-want-others-to-be-able-to-access-your-node"> <a href="#if-you-dont-want-others-to-be-able-to-access-your-node" class="anchor-heading" aria-labelledby="if-you-dont-want-others-to-be-able-to-access-your-node"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> If you DON’T want others to be able to access your node</h3><p>Select a username and a strong password. Replace <code class="language-plaintext highlighter-rouge">user:pass</code> at the end of the command below with your selected username and STRONG password. For example (<strong>don’t use this!</strong>), replace it with <code class="language-plaintext highlighter-rouge">monero:ryfP3IsKG6uZRiXp9zRB</code>.</p><div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>docker run -d --restart unless-stopped --name="monerod" -p 18080:18080 -p 18081:18081 -v bitmonero:/home/monero sethsimmons/simple-monerod:latest --rpc-bind-ip=0.0.0.0 --rpc-bind-port=18081 --no-igd --no-zmq --enable-dns-blocklist --rpc-login:user:pass </code></pre></div></div><h3 id="for-all-cases"> <a href="#for-all-cases" class="anchor-heading" aria-labelledby="for-all-cases"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> For all cases</h3><p>Copy/paste the following entire block as a single command:</p><div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>docker run -d \ --name watchtower --restart unless-stopped \ -v /var/run/docker.sock:/var/run/docker.sock \ containrrr/watchtower --cleanup \ monerod tor </code></pre></div></div><h2 id="configuring-your-router-firewall"> <a href="#configuring-your-router-firewall" class="anchor-heading" aria-labelledby="configuring-your-router-firewall"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> Configuring your router firewall</h2><p>If you want your Monero node to be reachable outside of your local network, you will need to enable port forwarding on your router.</p><p>You will need to forward these ports:</p><ul><li>18080 (TCP only, not UDP)<li>18081 (TCP only, not UDP)</ul><p>There are many router-specific guides on <a href="https://portforward.com/router.htm">portforward.com</a>.</p><p>Make sure to use a modern router from a reputable brand that is still getting security updates! Update the router firmware, and select a STRONG router password!</p><h2 id="updates"> <a href="#updates" class="anchor-heading" aria-labelledby="updates"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> Updates</h2><p>Your Monero node will automatically update to the latest Monero version! You will want to periodically update Ubuntu:</p><div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>sudo apt-get update &amp;&amp; sudo apt-get upgrade -y </code></pre></div></div><h2 id="credits"> <a href="#credits" class="anchor-heading" aria-labelledby="credits"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> Credits</h2><p>Thanks to Seth for Privacy for their <a href="https://sethforprivacy.com/guides/run-a-monero-node/">node guide</a> and their <a href="https://hub.docker.com/r/sethsimmons/simple-monerod">Docker image</a>.</p><hr /><p>Not ready to run your own Monero node yet? Check out a list of popular Monero remote nodes at <a href="https://nodes.monero.com">nodes.monero.com</a>.</p><hr><footer><p><a href="#top" id="back-to-top">Back to top</a></p><p class="text-small text-grey-dk-100 mb-0">Copyright &copy; Cake Labs LLC using Just the Docs</p><div class="d-flex mt-2"><p class="text-small text-grey-dk-000 mb-0"> <a href="https://github.com/cake-tech/monerocom-guides/tree/main/docs/tutorials/monero-node.md" id="edit-this-page">Edit this page on GitHub</a></p></div></footer></div></div><div class="search-overlay"></div></div>

Pages: 1 2 3 4 5 6 7 8 9 10