1192  
查询码:00000143
linux-Ubuntu系统安装chia钱包进行挖矿xch
作者: 文艺范儿 于 2021年04月30日 发布在分类 / 挖矿 / chia 下,并于 2021年05月30日 编辑
chai

详情见官网:

https://github.com/Chia-Network/chia-blockchain/wiki/INSTALL#ubuntudebian

Ubuntu/Debian安装chia进行挖矿xch


#在官网下载最新的安装包:https://github.com/Chia-Network/chia-blockchain/releases

wget https://github.com/Chia-Network/chia-blockchain/releases/download/1.1.6/chia-blockchain_1.1.6_amd64.deb
sudo dpkg -i chia-blockchain_1.1.6_amd64.deb
##此时安装后应该可以在Ubuntu的桌面里面找到chai钱包可以直接打开即可,后面不用操作。

故障排除

有时,在升级到新版本时,从以前运行的进程中遗留下来的零散守护进程会导致奇怪的bug/errors。确保在安装或升级之前杀死所有守护进程和chia进程。
这通常是通过执行上面升级示例中的chia stop -d all来完成的。
但是使用ps -aux | grep chia重复检查以确保没有chia进程在运行也没有坏处。如果在没有先运行chia stop -d all的情况下执行了安装和chia start,那么您可能必须手动杀死chia守护进程。
如果所有这些都失败了,重新启动机器并重新启动chia守护进程/进程通常就可以了。

切换能性能模式

apt install tuned -y
systemctl enable --now tuned
tuned-adm profile virtual-host
tuned-adm active # 检查
grep "cpu MHz" /proc/cpuinfo #检查
##注意:这里调整为virtual-host虚拟-主机模式
virtual-host虚拟-主机
通过设置 intel_pstate 和 max_perf_pct=100,相比节约能耗,该配置文件更注重性能表现。它降低了虚拟内存的交换。它能启用透明大页面,更频繁地重写脏页到磁盘。使用 cpupower 来设置 performance CPU 频率管理器,它将 kernel.sched_min_granularity_ns 设置为 10 μ 秒,kernel.sched_wakeup_granularity_ns 设置为 15 μ 秒,kernel.sched_migration_cost 设置为 5 μ 秒,以及 vm.dirty_ratio 设置为 40%


linux脚本挖矿

#!/bin/bash
 
scripts_name=$(basename $0)
scripts_dir=$(cd `dirname $0`;pwd)
log_file=/var/log/${scripts_name}.log

thred=6
tmp_dir=/mnt/ssd/sssd-05
done_dir=/mnt/5-32
key=3364022999

for (( i = 1 ;i<=${thred};i++ ))
do
   cd `dirname $0` && nohup  /usr/lib/chia-blockchain/resources/app.asar.unpacked/daemon/chia plots create -k32 -n1 -t ${tmp_dir} -2 ${tmp_dir} -d ${done_dir} -b6780 -u128 -r4 -a ${key}  > nohup-${i}.log 2>&1  & 
done




 同类知识

 推荐知识

 历史版本

修改日期 修改人 备注
2021-05-30 16:59:45[当前版本] 文艺范儿 格式调整
2021-05-25 01:36:47 文艺范儿 格式调整
2021-05-03 18:45:43 文艺范儿 格式调整
2021-04-30 12:39:19 文艺范儿 格式调整

  目录
    文艺知识分享平台 -V 4.9.5 -wcp
    京公网安备100012199188号 京ICP备2021030911号