Wie öffne ich bitcoind -daemon über die Befehlszeile in Windows?

Ich habe eine conf-Datei unter folgendem Pfad erstellt:

C:\Users\NAME\AppData\Roaming\Bitcoin\bitcoin.conf

Wenn ich die Bitcoind-Datei ausführe, passiert nichts. Mein Befehlszeilenfenster reagiert nicht mehr, als würde es warten. Ich habe ~ 1 Stunde gewartet und mein Computer ist ziemlich High-End (i7-Prozessor, 16 GB RAM).

Geben Sie hier die Bildbeschreibung ein

Ich möchte den Server ausführen und einige Befehle auf dem Bitcoin-Server auslösen.

Ich habe folgende conf-Datei:

# bitcoin.conf configuration file. Lines beginning with # are comments.


 # Network-related settings:

 # Run on the test network instead of the real bitcoin network.
 #testnet=0

 # Connect via a socks4 proxy
 #proxy=127.0.0.1:9050

 ##############################################################
 ##            Quick Primer on addnode vs connect            ##
 ##  Let's say for instance you use addnode=4.2.2.4          ##
 ##  addnode will connect you to and tell you about the      ##
 ##    nodes connected to 4.2.2.4.  In addition it will tell ##
 ##    the other nodes connected to it that you exist so     ##
 ##    they can connect to you.                              ##
 ##  connect will not do the above when you 'connect' to it. ##
 ##    It will *only* connect you to 4.2.2.4 and no one else.##
 ##                                                          ##
 ##  So if you're behind a firewall, or have other problems  ##
 ##  finding nodes, add some using 'addnode'.                ##
 ##                                                          ##
 ##  If you want to stay private, use 'connect' to only      ##
 ##  connect to "trusted" nodes.                             ##
 ##                                                          ##
 ##  If you run multiple nodes on a LAN, there's no need for ##
 ##  all of them to open lots of connections.  Instead       ##
 ##  'connect' them all to one node that is port forwarded   ##
 ##  and has lots of connections.                            ##
 ##       Thanks goes to [Noodle] on Freenode.               ##
 ##############################################################

 # Use as many addnode= settings as you like to connect to specific peers
 #addnode=69.164.218.197
 #addnode=10.0.0.2:8333

 # ... or use as many connect= settings as you like to connect ONLY
 # to specific peers:
 #connect=69.164.218.197
 #connect=10.0.0.1:8333

 # Do not use Internet Relay Chat (irc.lfnet.org #bitcoin channel) to
 # find other peers.
 #noirc=0

 # Maximum number of inbound+outbound connections.
 #maxconnections=


 # JSON-RPC options (for controlling a running Bitcoin/bitcoind process)

  server=1 #tells Bitcoin-QT to accept JSON-RPC commands.
 #server=0

 # You must set rpcuser and rpcpassword to secure the JSON-RPC api
 rpcuser=USERNAME_IVE_CHOSEN
 rpcpassword=PASSWORD_IVE_CHOSEN

 # How many seconds bitcoin will wait for a complete RPC HTTP request.
 # after the HTTP connection is established. 
 #rpctimeout=30

 # By default, only RPC connections from localhost are allowed.  Specify
 # as many rpcallowip= settings as you like to allow connections from
 # other hosts (and you may use * as a wildcard character):
 #rpcallowip=10.1.1.34
 #rpcallowip=192.168.1.*

 # Listen for RPC connections on this TCP port:
 #rpcport=8332

 # You can use Bitcoin or bitcoind to send commands to Bitcoin/bitcoind
 # running on another host using this option:
 #rpcconnect=127.0.0.1

 # Use Secure Sockets Layer (also known as TLS or HTTPS) to communicate
 # with Bitcoin -server or bitcoind
 #rpcssl=1

 # OpenSSL settings used when rpcssl=1
 #rpcsslciphers=TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH
 #rpcsslcertificatechainfile=server.cert
 #rpcsslprivatekeyfile=server.pem


 # Miscellaneous options

 # Set gen=1 to attempt to generate bitcoins
 #gen=0

 # Use SSE instructions to try to generate bitcoins faster.
 #4way=1

 # Pre-generate this many public/private key pairs, so wallet backups will be valid for
 # both prior transactions and several dozen future transactions.
 #keypool=100

 # Pay an optional transaction fee every time you send bitcoins.  Transactions with fees
 # are more likely than free transactions to be included in generated blocks, so may
 # be validated sooner.
 #paytxfee=0.00

 # Allow direct connections for the 'pay via IP address' feature.
 #allowreceivebyip=1

 # User interface options

 # Start Bitcoin minimized
 #min=1

 # Minimize to the system tray
 #minimizetotray=1

Irgendwelche Ideen, wie man den Server zum Laufen bringt?

Sie könnten versuchen daemon=1, der bitcoin.confDatei etwas hinzuzufügen und den bitcoindBefehl einfach ohne Argumente auszuführen. Ich habe keine Erfahrung mit Windows-Befehlszeilen, wenn sich die ausführbare Datei in diesem Ordner, aber nicht in Ihrem Standard-Binärpfad befindet, wäre der Befehl unter Linux ./bitcoind -daemon, ./was bedeutet, dass Sie eine Datei in diesem bestimmten Ordner ausführen möchten.

Antworten (1)

Soweit ich weiß, führen Sie den Bitcoin-Client so aus, wie er ausgeführt werden sollte. Sie müssen explizit angeben, dass Ihre Bitcoin als Daemon ausgeführt werden soll. Versuchen Sie, Ihre Server=1-Konfigurationszeilen so zu ändern (Ihr Kommentar hat möglicherweise versehentlich Bitcoin durcheinander gebracht ... aber ich weiß das nicht, nur eine Hypothese). Hier ist Ihr modifiziertes Beispiel

# JSON-RPC-Optionen (zur Steuerung eines laufenden Bitcoin/bitcoind-Prozesses)

# server=1 weist Bitcoin-QT an, JSON-RPC-Befehle zu akzeptieren.

server=1

Führen Sie im Zweifelsfall bitcoind in einem cmd-Fenster aus und rufen Sie ein zweites auf. Wechseln Sie in das Verzeichnis, das bitcoind enthält (innerhalb dieses zweiten cmd-Fensters). Versuchen Sie dann, einen einfachen Befehl auszuführen (versuchen Sie bitcoind getblockcount), wenn Sie ein Ergebnis erhalten, dann wissen Sie, dass Bitcoin funktioniert, aber es wird nicht als Hintergrunddienst gestartet.

Wenn Sie den bitcoin-qt-Client verwenden, bearbeiten Sie nichts in der Konfigurationsdatei. Konfigurieren Sie den Bitcoin-Client so, dass er automatisch startet.

" GUI-Einstellungen: Einstellungen -> Optionen dann markieren Sie das Kontrollkästchen mit dem Titel: [X] Bitcoin beim Systemstart starten " Quelle: https://en.bitcoin.it/wiki/Running_Bitcoin

Wenn Ihr Grund für die Verwendung von bitcoind über bitcoin-qt in der Möglichkeit liegt, Textbefehle an bitcoin zu übergeben: Die Konsole ist über das Hilfemenü zugänglich (Hilfe->Debuggen->Konsole).

Ich werde nicht behaupten, dass ich alles weiß, und ich bin mir sicher, dass einige davon keine perfekten Informationen sind, aber ich werde sie aktualisieren und Probleme gerne mit jedem lösen, dem ich helfen kann. Sei einfach nett ;)

Danke :) Ja es läuft, aber einfach nicht im Hintergrund!
Großartig! lass mich wissen, wenn ich dir weiter helfen kann :D