1.在基于 Ubuntu 或者 Debian 的系统中:node
$ sudo apt-get install \
build-essential pkg-config libc6-dev m4 g++-multilib \
autoconf libtool ncurses-dev unzip git python \
zlib1g-dev wget bsdmainutils automakepython
2.经过使用 git 或运行 fetch-params.sh, 来获取咱们的程序库:git
$ git clone https://github.com/zcash/zcash.git
$ cd zcash/
$ git checkout v1.0.3
$ ./zcutil/fetch-params.shgithub
3.配置ubuntu
创建 ~/.zcash 目录,并在 ~/.zcash/zcash.conf 中使用如下命令行放置配置文件。dom
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:fetch
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install g++-4.9ui
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