# Hiveos安装自定义ethminer ### 编译ethminer 参考[https://github.com/ethereum-mining/ethminer/blob/master/docs/BUILD.md](https://github.com/ethereum-mining/ethminer/blob/master/docs/BUILD.md) 注意,最好在ubuntu18.04上编译,因为Hiveos也是ubuntu18.04,保证glibc版本兼容性 ### 部署 1. 先在hiveos后台,修改飞行表,将挖矿软件设置为ethminer  并点击【设定挖矿软件配置】,指定版本【0.19.0】  2. 将飞行表更新到所有机器,等待所有机器更新完毕,直到确认所有机器已经开始使用hiveos官方提供的ethminer正常挖矿中 3. 把编译好的ethminer可执行文件上传到WEB服务器或CDN 假设url为:http://39.109.117.140/ethminer 4. 将下面的shell脚本代码保存为文件 update.sh,也上传到WEB服务器或CDN > #!/usr/bin/env bash miner stop wget http://39.109.117.140/ethminer -O /hive/miners/ethminer/ethash/0.19.0/ethminer chmod a+x /hive/miners/ethminer/ethash/0.19.0/ethminer miner start 假设url为:http://39.109.117.140/update.sh 5. 在hiveos后台批量勾选需要更新的机器,执行命令行: > wget -O - http://39.109.117.140/update.sh | bash  6. 稍等片刻,机器恢复算力则说明更新完毕,有异常的再单独处理 7. 以后需要再更新ethminer,只需重复步骤3、5即可
×
Sign in
Email
Password
Forgot password
or
Sign in via Google
Sign in via Facebook
Sign in via X(Twitter)
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
Continue with a different method
New to HackMD?
Sign up
By signing in, you agree to our
terms of service
.