下载

官网:https://litecoin.org/cn/

wget https://download.litecoin.org/litecoin-0.16.3/linux/litecoin-0.16.3-x86_64-linux-gnu.tar.gz

解压:

tar -zvxf litecoin-0.16.3-x86_64-linux-gnu.tar.gz

安装

安装,即放置于bin目录下。

install -m 0755 -o root -g root -t /usr/local/bin ./litecoin-0.16.3/bin/*

执行完命令之后,/usr/local/bin目录下会多出litecoin-cli、litecoind、litecoin-qt、litecoin-tx、test_litecoin几个可执行文件。

配置

当前用户根目录下创建配置文件目录:

mkdir ~/.litecoin

创建配置文件:

touch ~/.litecoin/litecoin.conf

配置文件内容:

# 接受JSON-RPC请求
server=1
# 是否是独立进程, 守护进程
daemon=1

# If run on the test network instead of the real bitcoin network
# testnet=0    # 这里设置成为1,就是 测试网络.

# You must set rpcuser and rpcpassword to secure the JSON-RPC api
# Please make rpcpassword to something secure, `5gKAgrJv8CQr2CGUhjVbBFLSj29HnE6YGXvfykHJzS3k` for example.
# rpc 用户名
rpcuser=testuser
# 密码
rpcpassword=123456
# 允许访问
rpcallowip=127.0.0.1
# 端口
rpcport=9332

# 数据存储位置
datadir=/mnt/ltc_data

启动

启动命令,直接执行:

litecoind

测试是否启动成功:

litecoin-cli getdifficulty

日志文件位于数据存储目录下的debug.log。



centos7 安装莱特币客户端-litecoin插图

关注公众号:程序新视界,一个让你软实力、硬技术同步提升的平台

除非注明,否则均为程序新视界原创文章,转载必须以链接形式标明本文链接

本文链接:http://www.choupangxia.com/2019/07/12/centos7-%e5%ae%89%e8%a3%85%e8%8e%b1%e7%89%b9%e5%b8%81%e5%ae%a2%e6%88%b7%e7%ab%af-litecoin/