<p>We can run 2 bitcoind nodes on a single server without installing it multiple times.
 We just have to create 2 data directory with a different configuration file (bitcoin.conf) for the 2 nodes. This configuration file should have different port numbers, user name and password specified.</p>

<p><strong>Node1:</strong></p>

<pre><code>bitcoind -regtest -datadir=./bitcoinNode1/ -conf=./bitcoinNode1/bitcoin.conf -rpcport=19001 -port=19000
</code></pre>

<p><strong>Node2:</strong></p>

<pre><code>bitcoind -regtest -datadir=./bitcoinNode2/ -conf=./bitcoinNode2/bitcoin.conf -rpcport=19011 -port=19010
</code></pre>

<p>You can also make the 2 nodes to connect each other by specifying the <strong><em>connect</em></strong> command while starting node2 as mentioned below.</p>

<pre><code>bitcoind -regtest -datadir=./bitcoinNode2/ -conf=./bitcoinNode2/bitcoin.conf -rpcport=19011 -port=19010 -listen=0 -connect=127.0.0.1:19000
</code></pre>

CC BY-SA 4.0
2019-09-06T15:27:59.933Z
2019-09-06T15:27:59.933Z
prajna
<p>All you need to do is update the <code>bitcoin.conf</code> for the second port to point to a different datadir, and use a different RPC port.</p>

<p>Do keep in mind that this will result in double the resource use for everything. Additionally, depending on your VPS, running multiple nodes on a single machine might not be feasible.</p>

<p>Usually, multiple applications should be able to use a single node, and differentiate addresses etc. at an application level.</p>

CC BY-SA 3.0
2018-04-04T08:31:16.967Z
how about wallet ? how to point that port a (e.g 8331) is for wallet a, and port b (e.g 8332) is for wallet b ? The point is I just want using different wallet for different app, in case something bad happed to one wallet doesn't affect another app ..
Billy Adelphia
CC BY-SA 3.0
2018-04-04T08:37:39.040Z
The wallet is controlled via the rpc, so simply changing the rpc port is enough. Changing the datadir ensures the second node will use a separate wallet file.
Raghav Sood
CC BY-SA 3.0
2018-04-04T08:02:40.950Z
2018-04-04T08:02:40.950Z
Raghav Sood
<p>Yes it's possible, you must run each bitcoind in different port and different datadir, take a look here  <a href="https://en.bitcoin.it/wiki/Running_Bitcoin" rel="nofollow noreferrer">https://en.bitcoin.it/wiki/Running_Bitcoin</a></p>

CC BY-SA 4.0
2018-06-09T23:54:00.793Z
2018-06-09T23:54:00.793Z
ergesto
<p>I have created one full node <code>bitcoind</code> on my VPS, that one is serving application A.
Now I want to create application B that has another node but on same VPS.
is that possible to install multiple <code>bitcoind</code> on one server using different wallet?
let's asume that I want application A connect to wallet.dat, application B to wallet_new.dat, with different bitcoin.conf configuration.</p>

<wallet><bitcoind><full-node>
how to run multiple bitcoind node on one server?
Billy Adelphia
# how to run multiple bitcoind node on one server?

(Asked by: username_0 on 2018-04-04)

I have created one full node `bitcoind` on my VPS, that one is serving application A.
Now I want to create application B that has another node but on same VPS.
is that possible to install multiple `bitcoind` on one server using different wallet?
let's asume that I want application A connect to wallet.dat, application B to wallet\_new.dat, with different bitcoin.conf configuration.

**Tags:** wallet, bitcoind, full-node


---

## 3 answers

### Answer by username_1 on 2019-09-06. Score: 2

We can run 2 bitcoind nodes on a single server without installing it multiple times.
 We just have to create 2 data directory with a different configuration file (bitcoin.conf) for the 2 nodes. This configuration file should have different port numbers, user name and password specified.
Node1:
bitcoind -regtest -datadir=./bitcoinNode1/ -conf=./bitcoinNode1/bitcoin.conf -rpcport=19001 -port=19000

Node2:
bitcoind -regtest -datadir=./bitcoinNode2/ -conf=./bitcoinNode2/bitcoin.conf -rpcport=19011 -port=19010

You can also make the 2 nodes to connect each other by specifying the connect command while starting node2 as mentioned below.
bitcoind -regtest -datadir=./bitcoinNode2/ -conf=./bitcoinNode2/bitcoin.conf -rpcport=19011 -port=19010 -listen=0 -connect=127.0.0.1:19000


---

### Answer by username_2 on 2018-04-04. Score: 0

All you need to do is update the `bitcoin.conf` for the second port to point to a different datadir, and use a different RPC port.

Do keep in mind that this will result in double the resource use for everything. Additionally, depending on your VPS, running multiple nodes on a single machine might not be feasible.

Usually, multiple applications should be able to use a single node, and differentiate addresses etc. at an application level.

> **Comments:**
> **username_0**: how about wallet ? how to point that port a (e.g 8331) is for wallet a, and port b (e.g 8332) is for wallet b ? The point is I just want using different wallet for different app, in case something bad happed to one wallet doesn't affect another app ..  
> **username_2**: The wallet is controlled via the rpc, so simply changing the rpc port is enough. Changing the datadir ensures the second node will use a separate wallet file.  

---

### Answer by username_3 on 2018-06-09. Score: 0

Yes it's possible, you must run each bitcoind in different port and different datadir, take a look here <https://en.bitcoin.it/wiki/Running_Bitcoin>


---

