{"id":4537,"date":"2020-09-29T22:04:25","date_gmt":"2020-09-29T22:04:25","guid":{"rendered":"https:\/\/stag.bitcoinsv.io\/?post_type=miner_document&p=4537"},"modified":"2020-10-02T15:19:24","modified_gmt":"2020-10-02T14:19:24","slug":"bitcoind","status":"publish","type":"miner_document","link":"https:\/\/bitcoinsv.io\/zh\/documentation\/miners\/installation\/bitcoind\/","title":{"rendered":"Bitcoind"},"content":{"rendered":"\n
\u4ee5\u4e0b\u7684\u6307\u5f15\u662f\u4ecb\u7ecd\u5728\u4e3b\u6d41\u7684Linux\u7cfb\u7edf\u4e0b\u5b89\u88c5Bitcoin SV\u8282\u70b9\u8f6f\u4ef6\u53ef\u4f7f\u7528\u7684\u5de5\u5177\uff0c\u524d\u63d0\u5047\u8bbe\u662f\u4f60\u4f7f\u7528\u7740\u7c7b\u4f3cBourne shell\u7684shell\uff0c\u6bd4\u5982 \u5728\u5f00\u59cb\u5b89\u88c5Bitcoin\u8f6f\u4ef6\u4e4b\u524d\uff0c\u8bf7\u786e\u8ba4\u4f60\u4f7f\u7528\u7684\u5e10\u6237\u80fd\u591f\u4f7f\u7528su\u6216sudo\u5c06\u8f6f\u4ef6\u5b89\u88c5\u5230\u6839\u7528\u6237\u6240\u62e5\u6709\u7684\u76ee\u5f55\u4e0b\u3002<\/p>\n\n\n\n \u4e0b\u8f7d\u4f60\u9009\u62e9\u7684\u8f6f\u4ef6\u7248\u672c\u7684\u538b\u7f29\u6587\u4ef6\uff0c\u4ee5\u4e0b\u793a\u4f8b\u4e2d\u4f7f\u7528\u7684\u8f6f\u4ef6\u662f\u64b0\u5199\u672c\u6587\u65f6\u7684\u6700\u65b0\u7248\u672cv1.0.5\uff1a<\/p>\n\n\n\n \u786e\u8ba4\u4f60\u4e0b\u8f7d\u6210\u529f\u7684\u6587\u4ef6\u7684sha\u54c8\u5e0c\u503c\u4e0edownload.bitcoinsv.io<\/a>\u4e0a\u8be5\u8f6f\u4ef6\u7248\u672c\u63d0\u4f9b\u7684\u54c8\u5e0c\u503c\u4e00\u81f4\u3002<\/p>\n\n\n\n \u627e\u5230\u60a8\u4e0b\u8f7d\u7684\u6587\u4ef6\uff0c\u4f7f\u7528 \u4ece\u540d\u4e3a \u521b\u5efa\u4e00\u4e2a \u5728\u8be5\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a \u4ee5\u4e0b\u662f \u8fd0\u884c \u8fd0\u884cBitcoind\uff0c\u4f20\u5165\u914d\u7f6e\u6587\u4ef6\u7684\u4f4d\u7f6e\u4ee5\u53ca\u5b58\u50a8bitcoin\u6570\u636e\u7684\u4f4d\u7f6e\uff1a<\/p>\n\n\n\n \uff08\u5728\u6211\u4eec\u7684\u793a\u4f8b\u4e2d\uff0c\u4f7f\u7528\u4e86\u7528\u6237\u6d4b\u8bd5\u6cd5\uff09<\/p>\n\n\n\n \u521b\u5efa \uff08\u8bf7\u786e\u8ba4\u4f60\u5c06\u4e0a\u9762 \u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5f00\u59cb\uff1a<\/p>\n\n\n\n \u6b64\u4ee3\u7801\u5e93\u4e2d\u5305\u62ec\u7528\u4e8e\u6267\u884cBitcoin SV\u8282\u70b9\u7684docker\u6620\u50cf\u3002\u611f\u8c22Josh Ellithorpe\u548c\u4ed6\u7684\u4ee3\u7801\u5e93<\/a>\uff0c\u4e3a\u6211\u4eec\u7684\u5e93\u63d0\u4f9b\u4e86\u57fa\u7840\u3002<\/p>\n\n\n\n \u8fd9\u4e2adocker\u6620\u50cf\u63d0\u4f9b\u4e86 \u8bf7\u5728\u6b64\u67e5\u770b\u53ef\u7528\u7684\u7248\u672cDocker Hub\u9875\u9762<\/a>\u3002<\/p>\n\n\n\n \u8fd0\u884c\u6700\u65b0\u7248\u672c\u7684Bitcoin SV\uff1a<\/p>\n\n\n\n \u8981\u5728\u540e\u53f0\u8fd0\u884c\u5bb9\u5668\uff0c\u8bf7\u5c06-d\u9009\u9879\u4f20\u9012\u7ed9docker run\uff0c\u5e76\u4e3a\u4f60\u7684\u5bb9\u5668\u6307\u5b9a\u4e00\u4e2a\u540d\u79f0\uff0c\u4ee5\u4fbf\u4e4b\u540e\u53c2\u8003\u4f7f\u7528\uff1a<\/p>\n\n\n\n \u5728\u540e\u53f0\u8fd0\u884cbitcoind\u670d\u52a1\u540e\uff0c\u53ef\u4ee5\u663e\u793a\u6b63\u5728\u8fd0\u884c\u7684\u5bb9\u5668\uff1a<\/p>\n\n\n\n \u6216\u8005\u67e5\u770b\u670d\u52a1\u65e5\u5fd7\uff1a<\/p>\n\n\n\n \u505c\u6b62\u6216\u91cd\u542f\u4e00\u4e2a\u8fd0\u884c\u7684\u5bb9\u5668\uff1a<\/p>\n\n\n\n \u914d\u7f6e\u670d\u52a1\u5668\u6700\u597d\u7684\u65b9\u6cd5\u5c31\u662f\u5c06\u53c2\u6570\u4ea4\u7ed9bitcoind\u6307\u4ee4\u3002\u4ee5\u4e0b\u4e3e\u4f8b\u5982\u4f55\u5728\u6d4b\u8bd5\u7f51\u4e0a\u8fd0\u884cBitcoin SV\uff1a<\/p>\n\n\n\n \u6216\u8005\uff0c\u4f60\u53ef\u4ee5\u7f16\u8f91\u5728\u6570\u636e\u76ee\u5f55\u4e2d\u751f\u6210\u7684 \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cDocker\u5c06\u521b\u5efa\u4e34\u65f6\u5bb9\u5668\u3002\u4e5f\u5c31\u662f\u8bf4\uff0c\u533a\u5757\u94fe\u6570\u636e\u5c06\u4e0d\u4f1a\u957f\u4e45\u4fdd\u5b58\uff0c\u6bcf\u6b21\u542f\u7528\u5bb9\u5668\u65f6\u90fd\u9700\u8981\u4ece\u5934\u5f00\u59cb\u540c\u6b65\u533a\u5757\u94fe\u3002<\/p>\n\n\n\n \u82e5\u8981\u5728\u5bb9\u5668\u91cd\u542f\u6216\u5347\u7ea7\u4e4b\u95f4\u4fdd\u6301\u533a\u5757\u94fe\u6570\u636e\u4e0d\u53d8\uff0c\u53ea\u9700\u6dfb\u52a0-v\u9009\u9879\u5373\u53ef\u521b\u5efa\u4e00\u4e2a\u6570\u636e\u5377\uff1a<\/p>\n\n\n\n \u6216\u8005\uff0c\u4f60\u53ef\u4ee5\u5c06\u6570\u636e\u5377\u6620\u5c04\u5230\u4f60\u7684\u4e3b\u673a\u67d0\u5904\uff1a<\/p>\n\n\n\n \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cDocker\u5728\u4e13\u7528\u7f51\u6865\u4e0a\u8fd0\u884c\u6240\u6709\u5bb9\u5668\uff0c\u8fd9\u610f\u5473\u7740\u60a8\u65e0\u6cd5\u8bbf\u95ee\u8fd0\u884c \u6709\u51e0\u79cd\u65b9\u6cd5\u53ef\u4ee5\u9488\u5bf9\u6b63\u5728\u8fd0\u884c\u7684 \u5982\u679c\u4f60\u8ba1\u5212\u5c06RPC\u7aef\u53e3\u516c\u5f00\u7ed9\u591a\u4e2a\u5bb9\u5668\uff08\u6bd4\u5982\u5f53\u4f60\u6b63\u5728\u5f00\u53d1\u76f4\u63a5\u4e0eRPC\u7aef\u53e3\u901a\u8baf\u7684\u5e94\u7528\u7a0b\u5e8f\uff09\uff0c\u5219\u53ef\u80fd\u8981\u8003\u8651\u521b\u5efa\u4e00\u4e2a\u7528\u6237\u5b9a\u4e49\u7684\u7f51\u7edc\u3002\u7136\u540e\uff0c\u4f60\u53ef\u4ee5\u5c06\u6b64\u7f51\u7edc\u540c\u65f6\u7528\u4e8e \u4ee5\u4e0b\u8bf4\u660e\u5c06\u5f15\u5bfc\u4f60\u9010\u6b65\u5728GKE\uff08Google Kubernetes Engine\uff09\u4e2d\u521b\u5efa\u4e00\u4e2aBitcoin SV\u8282\u70b9\u3002<\/p>\n\n\n\n \u5982\u679c\u60a8\u60f3\u8fd0\u884c\u5176\u4ed6\u7248\u672c\u7684bitcoind\uff0c\u53ea\u9700\u5728 \u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n\n\n\n \u6709\u5173\u4f7f\u7528Docker Compose\u8fd0\u884c\u6bd4\u7279\u5e01\u8282\u70b9\u7684\u5b8c\u6574\u793a\u4f8b\uff0c\u8bf7\u53c2\u89c1Docker Compose \u793a\u4f8b<\/a>\u3002<\/p>\n","protected":false},"parent":4535,"menu_order":0,"template":"","meta":[],"tags":[],"minerdoc_category":[152],"lang":"zh","translations":{"zh":4537,"en":367},"yoast_head":"\nbash<\/code>\u3002<\/p>\n\n\n\n
\u4e0b\u8f7d<\/h2>\n\n\n\n
$ wget https:\/\/download.bitcoinsv.io\/bitcoinsv\/1.0.5\/bitcoin-sv-1.0.5-x86_64-linux-gnu.tar.gz<\/pre>\n\n\n\n
$ sha256sum bitcoin-sv-1.0.5-x86_64-linux-gnu.tar.gz<\/pre>\n\n\n\n
\/\/Expected Output <\/pre>\n\n\n\n
96f7c56c7ebd4ecb2dcd664297fcf0511169ac33eaf216407ebc49dae2535578 bitcoin-sv-1.0.5-x86_64-linux-gnu.tar.gz<\/pre>\n\n\n\n
<\/h2>\n\n\n\n
\u8bbe\u7f6e<\/h2>\n\n\n\n
tar<\/code>\u547d\u4ee4\u5c06\u5176\u89e3\u538b\uff0c\u4f7f\u7528
xzf<\/code>\u89e3\u538b\u53c2\u6570\u548c\u6587\u4ef6\u540d\u3002\u547d\u4ee4\u53c2\u6570
xzf<\/code>\u7684\u610f\u601d\u662f\u89e3\u538b gZip \u538b\u7f29\u4e86\u7684 tar\u6587\u4ef6\u3002\u4f8b\u5982\uff0c\u5bf9\u4e8e\u5f53\u524d\u76ee\u5f55\u4e0b\u768464\u4f4dtar\u6587\u4ef6\uff0c\u6307\u4ee4\u4e3a\uff1a<\/p>\n\n\n\n
$ tar xvf bitcoin-sv-1.0.5-x86_64-linux-gnu.tar.gz<\/pre>\n\n\n\n
bitcoin<\/code> \u7684\u65b0\u76ee\u5f55\u521b\u5efa\u4e00\u4e2a\u7b26\u53f7\u94fe\u63a5\u5230\u4f60\u521a\u521a\u901a\u8fc7\u89e3\u538b\u751f\u6210\u7684
bitcoin-sv-1.0.5<\/code>\u76ee\u5f55\uff0c\u4ee5\u65b9\u4fbf\u4f7f\u7528\u548c\u66f4\u65b0\uff1a<\/p>\n\n\n\n
$ ln -s bitcoin-sv-1.0.5 bitcoin<\/pre>\n\n\n\n
bitcoin-data<\/code>\u76ee\u5f55\uff0c\u653e\u5165bitcoin\u6570\u636e\uff08\u5426\u5219Bitcoin\u4f1a\u9ed8\u8ba4\u5c06\u6570\u636e\u653e\u5165
~\/.bitcoin<\/code>\uff09\uff1a<\/p>\n\n\n\n
$ mkdir bitcoin-data<\/pre>\n\n\n\n
bitcoin.conf<\/code>\u6587\u4ef6\uff0c\u7528\u4e8e\u5bf9\u4f60\u6240\u8fd0\u884c\u7684\u8282\u70b9\u8fdb\u884c\u8bbe\u7f6e\uff1a<\/p>\n\n\n\n
$ cd bitcoin-data\/<\/pre>\n\n\n\n
$ vim bitcoin.conf<\/pre>\n\n\n\n
bitcoin.conf<\/code>\u6587\u4ef6\u88ab\u7528\u4e8e\u5728STN\u4e0a\u914d\u7f6e\u4e00\u4e2a\u8282\u70b9\u7684\u793a\u4f8b\uff1a<\/p>\n\n\n\n
bitcoind --help<\/code>\u540e\u4f60\u53ef\u4ee5\u770b\u5230\u53ef\u9009\u62e9\u914d\u7f6e\u7684\u5b8c\u6574\u5217\u8868<\/p>\n\n\n\n
#start in background
daemon=1
#select network -- comment out both for mainnet
#testnet=1
stn=1
#Required Consensus Rules for Genesis
excessiveblocksize=10000000000 #10GB
maxstackmemoryusageconsensus=100000000 #100MB
#Mining
#biggest block size you want to mine
blockmaxsize=4000000000
blockassembler=journaling #journaling is default as of 1.0.5
#preload mempool
preload=1
#mempool usage allowance
maxmempool=8000 #8G
dbcache=8192 #8G
#Pruning -- Uncomment to trim the chain in an effort to keep disk usage below the figure set
#prune=100000 #100GB
#orphan transaction storage
#blockreconstructionextratxn=200000
#maxorphantxsize=10000
#transaction options
#maxsigcachesize=260
#maxscriptcachesize=260
#minrelaytxfee=0.00000001
#mintxfee=0.00000001
#dustrelayfee=0.00000001
#blockmintxfee=0.00000001
#relaypriority=0
#feefilter=0
#limitfreerelay=1000
#maxscriptsizepolicy=500000
#OP Return max size
#datacarriersize=100000 #Genesis default is UINT32_MAX
#Max number and size of related Child and Parent transactions per block template
limitancestorcount=100
limitdescendantcount=100
#limitancestorsize=25000000
#limitdescendantsize=25000000
#connection options
maxconnections=80
#ZMQ
#zmqpubhashtx=tcp:\/\/127.0.0.1:28332
#zmqpubhashblock=tcp:\/\/127.0.0.1:28332
#Ports - Leave commented for defaults
#port=9333
#rpcport=9332
#rpc settings
rpcworkqueue=600
rpcthreads=16
#rpcallowip=0.0.0.0\/0
rpcuser=CHANGE_ME
rpcpassword=CHANGE_ME
#debug options
#can be: net, tor,
# mempool, http, bench, zmq, db, rpc, addrman, selectcoins,
# reindex, cmpctblock, rand, prune, proxy, mempoolrej, libevent,
# coindb, leveldb, txnprop, txnsrc, journal, txnval.
# 1 = all options enabled.
# 0 = off which is default
#debug=1
#debugexclude to ignore set log items, can be used to keep log file a bit cleaner
debugexclude=libevent
debugexclude=leveldb
debugexclude=zmq
debugexclude=txnsrc
debugexclude=net
#shrinkdebugfile=0 # Setting to 1 prevents bitcoind from clearning the log file on restart. 0\/off is default
#multi-threaded options
#threadsperblock=32
#maxparallelblocks
#scriptvalidatormaxbatchsize
#maxparallelblocksperpeer
maxstdtxvalidationduration=15
maxcollectedoutpoints=1000000
maxstdtxnsperthreadratio=10000
#maxnonstdtxvalidationduration
\ufeff<\/pre>\n\n\n\n\u8fd0\u884cRun<\/h2>\n\n\n\n
\u76f4\u63a5\u8fd0\u884c<\/h3>\n\n\n\n
$ \/home\/test\/bitcoin\/bin\/bitcoind -conf=<\/strong>\/home\/test\/bitcoin-data\/bitcoin.conf -datadir=<\/strong>\/home\/test\/bitcoin-data -daemon<\/pre>\n\n\n\n
<\/h3>\n\n\n\n
\u4f7f\u7528
systemctl<\/code>\u8fd0\u884c<\/h3>\n\n\n\n
bitcoind.service<\/code>\u6587\u4ef6\uff1a<\/p>\n\n\n\n
$ sudo vim \/etc\/systemd\/system\/bitcoind.service<\/pre>\n\n\n\n
bitcoind.service<\/code>:<\/p>\n\n\n\n
[Unit]<\/strong>\nDescription=<\/strong>Bitcoin service\nAfter=<\/strong>network.target\n[Service]<\/strong>\nType=<\/strong>forking\nExecStart=<\/strong>\/home\/test\/bitcoin\/bin\/bitcoind -conf=\/home\/test\/bitcoin-data\/bitcoin.conf -datadir=\/home\/test\/bitcoin-data -daemon\nExecStop=<\/strong>\/home\/test\/bitcoin\/bin\/bitcoin-cli -conf=\/home\/test\/bitcoin-data\/bitcoin.conf -datadir=\/home\/test\/bitcoin-data stop\nExecReload=<\/strong>\/bin\/kill -s HUP $MAINPID\nRestart=<\/strong>on-abnormal\nTimeoutStopSec=<\/strong>120\nKillMode=<\/strong>none\nPrivateTmp=<\/strong>true\nUser=<\/strong>test\n[Install]<\/strong>\nWantedBy=<\/strong>multi-user.target\n<\/pre>\n\n\n\n
test<\/code>\u66ff\u6362\u4e3a\u4e86\u4f60\u7684\u767b\u5165\u7528\u6237\uff09<\/p>\n\n\n\n
$ sudo systemctl start bitcoind.service<\/pre>\n\n\n\n
<\/h3>\n\n\n\n
\u4f7f\u7528Docker\u8fd0\u884c<\/h3>\n\n\n\n
bitcoind<\/code>\u3001
bitcoin-cli<\/code>\u3001\u548c
bitcoin-tx<\/code>\uff0c\u5b83\u4eec\u53ef\u4ee5\u88ab\u7528\u4e8e\u8fd0\u884cBitcoin\u670d\u52a1\u5668\u5e76\u4e14\u4e0e\u4e4b\u4ea4\u4e92\u3002<\/p>\n\n\n\n
<\/strong><\/h4>\n\n\n\n
\u4f7f\u7528\u65b9\u6cd5<\/strong><\/strong><\/h4>\n\n\n\n
$ docker run bitcoinsv\/bitcoin-sv<\/pre>\n\n\n\n
$ docker run -d --rm --name bitcoind bitcoinsv\/bitcoin-sv<\/pre>\n\n\n\n
$ docker ps<\/pre>\n\n\n\n
$ docker logs -f bitcoind<\/pre>\n\n\n\n
$ docker stop bitcoind\n$ docker start bitcoind<\/pre>\n\n\n\n
<\/strong><\/h4>\n\n\n\n
\u914d\u7f6e<\/strong>Bitcoin<\/strong><\/h4>\n\n\n\n
$ docker run --name bitcoind-testnet bitcoinsv\/bitcoin-sv bitcoind -testnet<\/pre>\n\n\n\n
bitcoin.conf<\/code>\u6587\u4ef6\uff0c\u89c1\u4e0b\u3002<\/p>\n\n\n\n
<\/strong><\/h4>\n\n\n\n
\u6570\u636e\u91cf<\/strong><\/strong><\/h4>\n\n\n\n
$ docker run -d --rm --name bitcoind -v bitcoin-data:\/data bitcoinsv\/bitcoin-sv\n$ docker ps\n$ docker inspect bitcoin-data<\/pre>\n\n\n\n
$ docker run -d --rm --name bitcoind -v \"$PWD\/data:\/data\" bitcoinsv\/bitcoin-sv\n$ ls -alh .\/data<\/pre>\n\n\n\n
<\/strong><\/h4>\n\n\n\n
\u4f7f\u7528<\/strong>bitcoin-cli<\/strong><\/h4>\n\n\n\n
bitcoin-cli<\/code>\u547d\u4ee4\u6240\u5fc5\u9700\u7684RPC\u7aef\u53e3\uff088332\uff09\u3002<\/p>\n\n\n\n
bitcoind<\/code>\u5bb9\u5668\u8fd0\u884c
bitcoin-cli<\/code>\u3002\u6700\u7b80\u5355\u7684\u65b9\u6cd5\u5c31\u662f\u8ba9\u4f60\u7684
bitcoin-cli<\/code>\u5bb9\u5668\u4e0e\u4f60\u7684
bitcoind<\/code>\u5bb9\u5668\u5171\u4eab\u7f51\u7edc\uff1a<\/p>\n\n\n\n
$ docker run -d --rm --name bitcoind -v bitcoin-data:\/data bitcoinsv\/bitcoin-sv\n$ docker run --rm --network container:bitcoind bitcoinsv\/bitcoin-sv bitcoin-cli getinfo<\/pre>\n\n\n\n
bitcoind<\/code>\u548c
bitclin-cli<\/code>\u5bb9\u5668\uff0c\u5e76\u901a\u8fc7
-rpcconnect<\/code>\u6307\u5b9a\u4f60\u7684bitcoind\u5bb9\u5668\u7684\u4e3b\u673a\u540d\uff1a<\/p>\n\n\n\n
$ docker network create bitcoin\n$ docker run -d --rm --name bitcoind -v bitcoin-data:\/data --network bitcoin bitcoinsv\/bitcoin-sv\n$ docker run --rm --network bitcoin bitcoinsv\/bitcoin-sv bitcoin-cli -rpcconnect=<\/strong>bitcoind getinfo<\/pre>\n\n\n\n
<\/strong><\/h4>\n\n\n\n
Kubernetes<\/strong>\u914d\u7f6e<\/strong><\/strong><\/h4>\n\n\n\n
bitcoin-deployment.yml<\/code>\u4e2d\u66f4\u6539\u56fe\u50cf\u5f15\u7528\u5373\u53ef\u3002<\/p>\n\n\n\n
1- Add a new blank disk on GCE called bitcoin-data that is 200GB. You can always expand it later.\n2- Save the following code snippets and place them in a new directory kube.\n3- Change the rpcuser and rpcpass values in bitcoin-secrets.yml. They are base64 encoded. To base64 a string, just run echo -n SOMESTRING | base64.\n4- Run kubectl create -f \/path\/to\/kube\n5- Profit!<\/pre>\n\n\n\n
<\/strong><\/h5>\n\n\n\n
bitcoin-deployment.yml<\/h5>\n\n\n\n
apiVersion: extensions\/v1beta1\nkind: Deployment\nmetadata:\n namespace: default\n labels:\n service: bitcoin\n name: bitcoin\nspec:\n strategy:\n type: Recreate\n replicas: 1\n template:\n metadata:\n labels:\n service: bitcoin\n spec:\n containers:\n - env:\n - name: BITCOIN_RPC_USER\n valueFrom:\n secretKeyRef:\n name: bitcoin\n key: rpcuser\n - name: BITCOIN_RPC_PASSWORD\n valueFrom:\n secretKeyRef:\n name: bitcoin\n key: rpcpass\n image: bitcoinsv\/bitcoin-sv\n name: bitcoin\n volumeMounts:\n - mountPath: \/data\n name: bitcoin-data\n resources:\n requests:\n memory: \"2Gi\"\n restartPolicy: Always\n volumes:\n - name: bitcoin-data\n gcePersistentDisk:\n pdName: bitcoin-data\n fsType: ext4\n<\/pre>\n\n\n\n
bitcoin-secrets.yml<\/h5>\n\n\n\n
apiVersion: v1\nkind: Secret\nmetadata:\n name: bitcoin\ntype: Opaque\ndata:\n rpcuser: YWRtaW4=\n rpcpass: aXRvbGR5b3V0b2NoYW5nZXRoaXM=\n<\/pre>\n\n\n\n
bitcoin-srv.yml<\/h5>\n\n\n\n
apiVersion: v1\nkind: Service\nmetadata:\n name: bitcoin\n namespace: default\nspec:\n ports:\n - port: 8333\n targetPort: 8333\n selector:\n service: bitcoin\n type: LoadBalancer\n externalTrafficPolicy: Local<\/pre>\n\n\n\n
<\/strong><\/h4>\n\n\n\n
\u5b8c\u6574\u793a\u4f8b<\/strong><\/strong><\/h4>\n\n\n\n