1
This is a multi-part question.
I downloaded source code of bitcoin core from github and compiled it on my Windows 10. Then I got bitcoind and bitcoin-qt among other commands. I first run bitcoin-qt and choose a directory(D:\bitcoin) for blockchain data storing. However because I need to use bitcoin-cli tool and bitcoin-qt doesn't expose an RPC service by default, I close bitcoin-qt and start bitcoind.
But then I found that bitcoind didn't download blockchain from where bitcoin-qt stopped(by run bitcoin-cli -getinfo). How can I make bitcoind download that way? (I use bitcoind -datadir=D:\bitcoin to do that, is it right?)
Another question is where should I put my configure file. In my home directory(C:\Users\MyName) or just in the same data directory(D:\bitcoin)? Does bitcoind and bitcoin-qt use the same configure file?
Not sure about the details on windows, but best is to point both to the same config file and datadir. Just setting -datadir should accomplish that. But I think by default, they should both use the same already, so not sure why that would not already work. Unless maybe you're starting one as Administrator and the other not (or a different user altogether). If bitcoind is running as a service, check which user it's running as (in service properties). – Jannes – 2019-04-07T12:32:33.650