首先在服务器安装docker
sudo apt update && sudo apt install docker.io
然后跑minima节点
sudo docker run -it --name minima_#RPC# -e "PORT=#PORT#" -e "RPC=#RPC#" -v ~/minima/data_#PORT#:/minima/data qsobad/minima:latest
把#RPC#换成 rpc port,比如9001
把#PORT换成minima port,比如9002
以下是案例:
sudo docker run -it --name minima_9001 -e "PORT=9001" -e "RPC=9002" -v ~/minima/data_9001:/minima/data qsobad/minima:latest
然后设定你的uid,把#YOUR_UID#替换成你账号的UID
sudo docker exec -it minima_9001 /bin/curl 127.0.0.1:9002/incentivecash+uid:#YOUR_UID#