アイドル状態のサーバーの構成が不十分であるため(システムはcentosです)、マイニングする簡単な方法を見つけ(アイドル状態もアイドル状態です)、以下の特定の手順を記録します。
- まず、minergateでアカウントを登録します
- 次のコマンドを実行します。
yum groupinstall "Development Tools"
- 次のコマンドを実行します。
yum install curl-devel openssl-devel git screen
- プルコード:
git clone https://github.com/tpruvot/cpuminer-multi.git
如果太慢使用这个镜像:git clone https://gitee.com/froyo91/cpuminer-multi.git
- 次のコマンドを実行します。
cd cpuminer-multi
- 次のコマンドを実行します。
./autogen.sh
- 次のコマンドを実行します。
./configure --prefix=/usr/bin/ CFLAGS="-march=native" --with-crypto --with-curl
- 次のコマンドを実行します。
./build.sh
- 次のコマンドを実行します。
mv cpuminer /usr/bin
- 次のコマンドを使用して、マイニングを開始します。
nohup cpuminer -a cryptonight -o stratum+tcp://xmr.pool.minergate.com:45700 -u [email protected] &
その中で、505772146 @ qq.comは、最初のステップで登録したアカウント名に置き換えることができます。
結果を見る
-
一番上のコマンドを見てください:
-
Minergateの背景ビュー(Tencent Cloudの場合、タイムアウトになることがあります)