user6024: I want to run two instances of bitcoind on my machine.
I know my bitcoin.conf file is in ./bitcoin/bitcoin.conf, and I know (thanks to this thread) that I need to change my .conf file to point to different data dirs and RPC ports, etc.
However there is only one .conf file.
How do I go about pointing my second bitcoind instance to a new bitcoin.conf file? I copied the directory with the compiled code to a new directory, I am making the assumption that compiled code can be copied into another directory and it will work without problems.

user19185: How to run two instances with same wallet
sudo su -
./xcoind stop
cp -r .xcoin xcoin2

cat .xcoin/xcoin.conf
---
rpcport=3776
port=3777
---

vi ./xcoin2/xcoin.conf
---
rpcport=3876
port=3877
addnode=127.0.0.1:3777
---

./xcoind &
./xcoind -datadir=/root/xcoin2 &


user6982: Probably, better to add new user.
Simply create new user:
# adduser bitcoin1
# adduser bitcoin2
# su -l bitcoin1 -c 'bitcoind'
# su -l bitcoin2 -c 'bitcoind'


user6454: Change the -datadir flag to a new absolute location. Each instance will follow the bitcoind.conf in their respective directory. 

6024: <p>I want to run two instances of bitcoind on my machine.</p>

<p>I know my bitcoin.conf file is in ./bitcoin/bitcoin.conf, and I know (thanks to <a href="https://bitcoin.stackexchange.com/questions/1270/is-it-possible-to-run-more-than-one-client-instance-on-a-machine">this thread</a>) that I need to change my .conf file to point to different data dirs and RPC ports, etc.</p>

<p>However there is only one .conf file.</p>

<p>How do I go about pointing my second bitcoind instance to a new bitcoin.conf file? I copied the directory with the compiled code to a new directory, I am making the assumption that compiled code can be copied into another directory and it will work without problems.</p>
 19185: <p>How to run two instances with same wallet</p>

<pre><code>sudo su -
./xcoind stop
cp -r .xcoin xcoin2

cat .xcoin/xcoin.conf
---
rpcport=3776
port=3777
---

vi ./xcoin2/xcoin.conf
---
rpcport=3876
port=3877
addnode=127.0.0.1:3777
---

./xcoind &amp;
./xcoind -datadir=/root/xcoin2 &amp;
</code></pre>
 6982: <p>Probably, better to add new user.</p>

<p>Simply create new user:</p>

<pre><code># adduser bitcoin1
# adduser bitcoin2
# su -l bitcoin1 -c 'bitcoind'
# su -l bitcoin2 -c 'bitcoind'
</code></pre>
 6454: <p>Change the <code>-datadir</code> flag to a new absolute location. Each instance will follow the <code>bitcoind.conf</code> in their respective directory. </p>
