csdn部落格:
****:jian1098@qq.com
root@ubuntu:~# wget
root@ubuntu:~# tar -zvxf litecoin-0.16.3-x86_64-linux-gnu.tar.gz
root@ubuntu:~# install -m 0755 -o root -g root -t /usr/local/bin ./litecoin-0.16.3/bin/*
將下面資訊全部複製,並修改rpcuser(rpc使用者名稱),rpcpassword(rpc使用者密碼),rpcallowip(允許訪問的ip位址)然後儲存root@ubuntu:~$ mkdir .litecoin #建立目錄
root@ubuntu:~$ cd .litecoin/
root@ubuntu:~$ vi litecoin.conf
# generated by
# this config should be placed in following path:
# ~/.litecoin/litecoin.conf
# [rpc]
# accept command line and json-rpc commands.
server=1
# username for json-rpc connections
rpcuser=litecoinrpc
# password for json-rpc connections
rpcpassword=litecoinrpc
# listen for json-rpc connections on this port
rpcport=18332
# allow json-rpc connections from specified source. valid for are a single ip (e.g. 1.2.3.4),
# a network/netmask (e.g. 1.2.3.4/255.255.255.0) or a network/cidr (e.g. 1.2.3.4/24). this option
# can be specified multiple times.
rpcallowip=192.168.1.178
rpcallowip=192.168.1.179
# run this node on the litecoin test network.
testnet=1
root@ubuntu:~/.litecoin$ litecoind -daemon
litecoin server starting
能返回下面的資訊表示啟動成功root@ubuntu:~$ curl --user litecoinrpc --data-binary '' -h 'content-type: text/plain;'
enter host password for user 'litecoinrpc':
,,],"relayfee":0.00001000,"incrementalfee":0.00001000,"localaddresses":,"warnings":""},"error":null,"id":"curltest"}
檢查同步日誌(刷屏):root@ubuntu:~/.litecoin/testnet3$ litecoin-cli stop
litecoin server stopping
查詢當前同步到的區塊數:root@ubuntu:~/.litecoin$ cd testnet4/
root@ubuntu:~/.litecoin/testnet3$ tail -f debug.log
2018-11-21t02:40:28z net thread start
2018-11-21t02:40:31z new outbound peer connected: version: 70015, blocks=1444366, peer=1
2018-11-21t02:40:31z new outbound peer connected: version: 70015, blocks=1444366, peer=0
2018-11-21t02:40:32z 108 addresses found from dns seeds
2018-11-21t02:40:32z dnsseed thread exit
2018-11-21t02:40:36z new outbound peer connected: version: 70015, blocks=1444366, peer=2
2018-11-21t02:40:37z new outbound peer connected: version: 70015, blocks=1444366, peer=5
2018-11-21t02:40:37z new outbound peer connected: version: 70015, blocks=1444366, peer=3
2018-11-21t02:40:41z new outbound peer connected: version: 70015, blocks=1444366, peer=4
2018-11-21t02:40:48z new outbound peer connected: version: 70015, blocks=1414448, peer=6
.......
查詢測試網路中的總區塊:root@ubuntu:~/.litecoin/testnet4$ curl --user litecoinrpc --data-binary '' -h 'content-type: text/plain;'
enter host password for user 'litecoinrpc':
需要注意的是只有區塊同步到最新才可以查到錢包餘額,從頭開始同步大概需要一天時間。
返回結果中的 「qnuznya45hwrpsjz4sywaeqfzs9ubc2j6l」 即為新建立的萊特幣錢包位址root@ubuntu:~$ curl --user litecoinrpc --data-binary '' -h 'content-type: text/plain;'
enter host password for user 'litecoinrpc':
查詢餘額
omni@ubuntu:~$ curl --user litecoinrpc --data-binary '' -h 'content-type: text/plain;'
你可以在萊特幣區塊鏈瀏覽器查到餘額
LTC 萊特幣 centos 節點搭建
編輯配置檔案 預設目錄 root litecoin litecoin.conf rpc 使用者名稱 rpcuser litecoinrpc rpc 密碼 rpcpassword litecoin2020 允許其他主機連線rpc服務 rpcbind 0.0.0.0 rpcallowip 0.0.0.0...
Linux 萊特幣Litcoin節點搭建
wget tar zxvf litecoin 0.18.1 x86 64 linux gnu.tar.gz cd litecoin 0.18.1 cd bin 然後執行 litecoind它幫助我們建立需要的目錄與檔案,同時開始執行並列印日誌,按control c停止後開始修改配置 cd litec...
LTC 萊特幣 錢包安裝 Ubuntu
linux x64 wget 二.解壓並初次啟動 解壓 tar xzvf litecoin 0.15.1 x86 64 linux gnu.tar.gz 初次啟動 litecoind 生成 litecoin 資料夾 ctrl c 結束程序 三.編寫配置檔案 vim litecoin litecoin...