远程矿工

远程矿工

  • 1,远程矿工v0.1.5
  • 2,远程矿工vo.1.6

1,远程矿工v0.1.5

  • 删除数据
rm -rf /usr/local/bin/lotus /usr/local/bin/lotus-storage-miner /usr/local/bin/lotus-seal-worker
  • 拷贝源代码
scp -r [email protected]:/root/lotus/ .
  • 设置环境变量
export LOTUS_STORAGE_PATH=/storage/lotuswork/lotusstorage
export LOTUS_PATH=/storage/lotuswork/lotus
export WORKER_PATH=/storage/lotuswork/lotusworker

export TMPDIR=/storage/lotuswork/tmpdir

export STORAGE_API_INFO="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJBbGxvdyI6WyJyZWFkIiwid3JpdGUiLCJzaWduIiwiYWRtaW4iXX0.R59miiwN7cij60O3-E39eRJ5hbK7jfWaJnhyqFyRAxM:/ip4/192.168.0.197/tcp/2345/http"
  • 终端代理
  • 编译安装
# cd /root/lotus/
# make clean all && make install
# cd /storage/
  • 运行远程矿工
nohup lotus-seal-worker run >> /storage/worker.log 2>&1 &
Waiting for new task
  • 重启
kill -9 $(ps aux | grep lotus | grep -v grep | awk '{print $2}')

2,远程矿工vo.1.6

  • kill lotus-seal-worker进程
kill -9 $(ps aux | grep lotus | grep -v grep | awk '{print $2}')
scp [email protected]:/usr/local/bin/\{
     lotus,lotus-seal-worker,lotus-storage-miner} /usr/local/bin/
nohup lotus-seal-worker run >> /storage/worker.log 2>&1 &

参考:

  1. scp复制多个文件

你可能感兴趣的:(#,lotus,lotus,filecoin,worker,v0.1.6)