运行零币Zcash(ZEC)

本文档详细介绍了如何在基于Ubuntu或Debian的系统上安装和配置Zcash的过程。包括安装必要的依赖包、通过git获取程序库、配置zcash.conf文件、安装Zcash二进制文件及运行Zcash节点等内容。

1.在基于 Ubuntu 或者 Debian 的系统中:

$ sudo apt-get install \
build-essential pkg-config libc6-dev m4 g++-multilib \
autoconf libtool ncurses-dev unzip git python \
zlib1g-dev wget bsdmainutils automake


2.通过使用 git 或运行 fetch-params.sh, 来获取我们的程序库:

$ git clone https://github.com/zcash/zcash.git
$ cd zcash/
$ git checkout v1.0.3
$ ./zcutil/fetch-params.sh

3.配置

建立 ~/.zcash 目录,并在 ~/.zcash/zcash.conf 中使用以下命令行放置配置文件。

mkdir -p ~/.zcash
echo "addnode=mainnet.z.cash" >~/.zcash/zcash.conf
echo "rpcuser=username" >>~/.zcash/zcash.conf
echo "rpcpassword=`head -c 32 /dev/urandom | base64`" >>~/.zcash/zcash.conf

4.通过二进制安装
On Ubuntu Trusty, you can install gcc/g++ 4.9 as follows:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install g++-4.9

First install the following dependency so you can talk to our repository using HTTPS:

sudo apt-get install apt-transport-https
Next add the Zcash master signing key to apt's trusted keyring:

wget -qO - https://apt.z.cash/zcash.asc | sudo apt-key add -
Fingerprint: F1E2 1403 7E94 E950 BA85 77B2 63C4 A216 9C1B 2FA2

Add the repository to your sources:

echo "deb [arch=amd64] https://apt.z.cash/ jessie main" | sudo tee /etc/apt/sources.list.d/zcash.list

Finally, update the cache of sources and install Zcash:

sudo apt-get update && sudo apt-get install zcash

5.运行 Zcash:

现在,运行 zcashd!

$ zcashd
想要在后台运行程序 (并没有通常可见的节点指示屏幕),可以使用 ./src/zcashd --daemon。

你可以在 RPC 加载完毕后使用它。以下是一个快速测试它的方法:

$ zcash-cli getinfo

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

lxr1908

用钱砸我

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值