I am very new to blockchain. I try to go through the following example but I can not make the second node.
how-to-build-a-private-ethereum-blockchain
What I have done
I have two directories for each node in the go-ethereum directory(node1, node2).
I have two directories for the geth and keystore directory (.ethereum1, .ethereum2).
I made new account in each node directory.
I can make the first node and it works fine.
/home/user/Etherum/go-ethereum/build/bin/geth --mine --nodiscover --maxpeers 1 --networkid 13 --port 30304 --datadir ~/.ethereum1 --rpc --rpccorsdomain "*"
However when I start the second one
/home/user/Etherum/go-ethereum/build/bin/geth --mine --nodiscover --maxpeers 1 --networkid 13 --port 30305 --datadir ~/.ethereum2 --rpc --rpccorsdomain "*"
I set different port as it was the problem previously.
I have the following error
Fatal: Error starting protocol stack: listen tcp 127.0.0.1:8545: bind: address already in use
If what I am doing totally wrong then please explain me what to do.
Thank you