bitcoin
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt update -y
sudo apt install bitcoind
需要在自行建立 bitcoin.conf檔案
/home/ubuntu/.bitcoin/bitcoin.conf
bitcoind
bitcoind -testnet
bitcoin-cli -rpcuser=user -rpcpassword=password -rpcconnect=192.168.1.2 -rpcport=8333 stop
bitcoin-cli -rpcuser=user -rpcpassword=password -rpcconnect=192.168.1.2 -rpcport=18333 stop
# run background mode
daemon=1
# open rpc service
server=1
# rpc testnet service
[test]
rpcport=18333
// your host private ip: 192.168.1.2
rpcbind=192.168.1.2
rpcallowip=0.0.0.0/0
rpcuser=user
rpcpassword=password
# rpc main service
[main]
rpcport=8333
// your host private ip: 192.168.1.2
rpcbind=192.168.1.2
rpcallowip=0.0.0.0/0
rpcuser=user
rpcpassword=password
# start bitcoin with main chain command: bitcoind
# start bitcoin with test chain command: bitcoind -testnet
# stop command: bitcoin-cli -rpcuser=user -rpcpassword=password -rpcconnect=192.168.1.2 stop
netstat -alpn | grep bitcoind
curl -X POST -H "Content-Type: text/plain" <host public ip>:8333 -u user:password --data '{"method": "getblockhash","params": [0],"id": "foo"}'
!image
May 8, 2024CMyEdit.h #pragma once #include "afxwin.h" class CMyEdit : public CEdit { public: CMyEdit(); // standard constructor ~CMyEdit();
Sep 8, 2021在使用 s3 plugin 時候, 遇到 java error message 時候, 在 log file 會印出多行的 error stack trace. 可以使用 codec multiline 來解決, 把這些 error message 合併成一個 log message. 問題: 使用 multiline 後, add_field 和 @metadata 的資料會在每個 log file 的最後一筆 message 被清空, 導致讀不到設定的值. github 有人提出, 但是目前還沒把解決方法更新. https://github.com/logstash-plugins/logstash-input-s3/pull/173 解決: 自己安裝 ruby 使用 gem 從 source code 自己加入網友提供的程式碼 build 一版新的 logstash-input-s3-3.5.1.gem
Apr 7, 2020or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up