centos
- 设置hugepage
检查是否开启hugepage
sysctl vm.nr_hugepages #输出0,则未开启
#修改文件,添加
vim /etc/sysctl.conf
vm.nr_hugepages = 128
# 使配置生效
sysctl -p
#检查
sysctl vm.nr_hugepages
- install miner
# https://github.com/xmrig/xmrig/wiki/CentOS-Build
# https://github.com/xmrig/xmrig
yum install -y epel-release
yum install -y git make cmake gcc gcc-c++ libstdc++-static libmicrohttpd-devel libuv-static
git clone https://github.com/xmrig/xmrig.git
cd xmrig
## 修改donate
sed -i 's/constexpr const int kDefaultDonateLevel = 5;/constexpr const int kDefaultDonateLevel = 0;/' ./src/donate.h
sed -i 's/constexpr const int kMinimumDonateLevel = 1;/constexpr const int kMinimumDonateLevel = 0;/' ./src/donate.h
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DUV_LIBRARY=/usr/lib64/libuv.a && make
- 运行
./xmrig -o stratum+tcp://pool.etn.spacepools.org:3333 -u wallet_address -p x -k -t 8 -B -l ./output
-t 线程数
-B 后台执行
-l 输出日志
XMR (Monero)
官网 https://getmonero.org/
下载本地钱包 https://getmonero.org/downloads/ 同步区块
矿池: 国内 http://bi-chi.com/
ETN
官网 https://my.electroneum.com/ 注册
矿池 https://etn.spacepools.org/#