Linux安装Chia

司寇安宜
2023-12-01

查看盘详情:

lsblk
fdisk -l
df -h

#格式化
mkfs.xfs -f  /dev/nvme0n1
mkfs.xfs -f  /dev/nvme1n1
mkfs.xfs -f  /dev/sdb 


#创建文件目录
sudo mkdir /tmp1
sudo mkdir /tmp2
sudo mkdir /data1


# 挂载
sudo mount /dev/nvme0n1 /tmp1
sudo mount /dev/nvme1n1 /tmp1
sudo mount /dev/sdb /data1


#查看一下挂载是否成功了
df -TH /tmp1
df -TH /tmp2
df -TH /data1


# 更改目录Owner,注意不改文件夹权限P盘的时候会报错
sudo chown -R root /tmp1
sudo chown -R root /tmp2
sudo chown -R root /data1

 


#然后开始安装chia相关工具:

  sudo yum update -y

  sudo yum install python3 git -y

  git clone https://github.com/Chia-Network/chia-blockchain.git -b latest

  cd chia-blockchain

  sh install.sh

  . ./activate

  注意'. ./activate'这个一定不要打错,执行完之后会进入一个python虚拟环境,如下所示,会有一个(venv)的前缀

(其它:
make: cc:命令未找到
yum -y install gcc automake autoconf libtool make

command 'gcc' failed with exit status 1错误问题
安装以下python的devel环境
yum install python-devel

pip install wordcloud-1.7.0-cp38-cp38-win32.whl

sudo yum install python3 git gcc -y

yum -y install wget

pip install pip-21.1.1-py3-none-any.whl

python3 -m pip install --upgrade pip
yum install python3-devel

 

启动
chia init

开启服务
chia start farmer

看钱包
chia wallet show

看秘钥
chia keys show

 

P盘:


nohup chia plots create -k 32 -b 4000 -r 2 -n 6 -t /tmp1 -d /data1 >> plots11.log 2>&1 &
nohup chia plots create -k 32 -b 4000 -r 2 -n 6 -t /tmp1 -d /data1 >> plots12.log 2>&1 &
nohup chia plots create -k 32 -b 4000 -r 2 -n 6 -t /tmp1 -d /data1 >> plots13.log 2>&1 &
nohup chia plots create -k 32 -b 4000 -r 2 -n 6 -t /tmp1 -d /data1 >> plots14.log 2>&1 &
nohup chia plots create -k 32 -b 4000 -r 2 -n 6 -t /tmp1 -d /data1 >> plots15.log 2>&1 &

nohup chia plots create -k 32 -b 4000 -r 2 -n 6 -t /tmp2 -d /data1 >> plots21.log 2>&1 &
nohup chia plots create -k 32 -b 4000 -r 2 -n 6 -t /tmp2 -d /data1 >> plots22.log 2>&1 &
nohup chia plots create -k 32 -b 4000 -r 2 -n 6 -t /tmp2 -d /data1 >> plots23.log 2>&1 &
nohup chia plots create -k 32 -b 4000 -r 2 -n 6 -t /tmp2 -d /data1 >> plots24.log 2>&1 &
nohup chia plots create -k 32 -b 4000 -r 2 -n 6 -t /tmp2 -d /data1 >> plots25.log 2>&1 &

看P文件:
chia farm summary

 

 

 类似资料: