# Ironfish挖矿教程 **Published by:** [luxebeng](https://paragraph.com/@luxebeng/) **Published on:** 2021-12-22 **URL:** https://paragraph.com/@luxebeng/ironfish ## Content 首先准备一台服务器,CPU核心数要多一些,8核以上,内存要求不高。安装 node.js 16dnf module install nodejs:16 安装GCC 和其它的工具yum install make gcc gcc-c++ yum install git python36 安装rustcurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh source $HOME/.cargo/env 第一条命令会弹出一个菜单,直接回车或者选项1(缺省)即可。安装 yarnnpm install --global yarn 下载官方源代码cd /root git clone https://github.com/iron-fish/ironfish.git chown -R root ironfish 编译源码cd /root/ironfish yarn install yarn build cd /root/ironfish/ironfish-cli/ yarn build 如果编译源码后,在执行ironfish的相关命令出现 xxx is not a ironfish command 这类错误,可以执行cd /root/ironfish yarn install yarn build 启动节点(初次启动要同步数据比较慢)cd /root/ironfish/ironfish-cli/ yarn ironfish start 窗口不要关闭,或者把启动命令修改为后台方式 nohup yarn ironfish start >nohup.log &配置帐号(与官网注册一致)yarn ironfish config:set blockGraffiti "sddcg" 双引号填写自己在官网注册的帐号再开一个终端窗口开启挖矿cd /root/ironfish/ironfish-cli/ yarn ironfish miners:start -t CPU核心数 或 yarn ironfish miners:start -t -1 窗口不要关闭,或者把启动命令修改为后台方式 nohup yarn ironfish miners:start -t -1 >/dev/null 2>mine.log &官网查看积分https://testnet.ironfish.network/leaderboard每次登录都会发邮件,需要到邮箱点击链接完成登录 在search框输入自己的帐号后就能过滤自己的帐号,然后点击进入就可以查看积分情况水龙头领币cd /root/ironfish/ironfish-cli/ yarn ironfish faucet 查看状态cd /root/ironfish/ironfish-cli/ yarn ironfish status -f 下图的 mined前的数字表示你挖到的数量status ## Publication Information - [luxebeng](https://paragraph.com/@luxebeng/): Publication homepage - [All Posts](https://paragraph.com/@luxebeng/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@luxebeng): Subscribe to updates