centos7 安装莱特币客户端-litecoin

栏目: 服务器 · 发布时间: 6年前

内容简介:官网:解压:安装,即放置于bin目录下。

官网: 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》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Pragmatic Thinking and Learning

Pragmatic Thinking and Learning

Andy Hunt / The Pragmatic Bookshelf / 2008 / USD 34.95

In this title: together we'll journey together through bits of cognitive and neuroscience, learning and behavioral theory; you'll discover some surprising aspects of how our brains work; and, see how ......一起来看看 《Pragmatic Thinking and Learning》 这本书的介绍吧!

MD5 加密
MD5 加密

MD5 加密工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具