预备安装
1.删除软件
docker container stop $(docker container ls -aq)
docker system prune -a --volumes
apt-get autoremove docker docker-ce docker-engine docker.io containerd runc
dpkg -l | grep docker
apt-get autoremove docker-ce-*
rm -rf /etc/systemd/system/docker.service.d
rm -rf /var/lib/docker
rm -rf /usr/local/bin/docker-compose
2.安装Docker
apt-get update
sudo apt install python3-pip dkms jq python3 python3.9 nodejs ca-certificates curl gnupg-agent software-properties-common gnupg2 curl apt-transport-https nodejs
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository
“deb [arch=amd64] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu
$(lsb_release -cs)
stable”
或
sudo add-apt-repository
“deb [arch=amd64] Index of linux/ubuntu/
$(lsb_release -cs)
stable”
apt install docker-ce
3.安装Docker-compose
sudo curl -L https://get.daocloud.io/docker/compose/releases/download/1.29.2/docker-compose-Linux-x86_64 -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
4.删除phala旧的脚本//没有安装过,可以不使用
sudo phala uninstall
sudo rm -R ~/solo-mining-scripts-para
sudo rm -R ~/solo-mining-scripts-main
sudo rm ~/main.zip
sudo rm ~/para.zip
第二步 开始安装phala
wget https://github.com/Phala-Network/solo-mining-scripts/archive/refs/heads/main.zip
unzip main.zip
cd ~/solo-mining-script-main
cd ~/solo-mining-scripts-main
sudo chmod +x sgx_enable
sudo ./sgx_enable
sudo reboot
sudo ./install.sh en
phala install
vim /opt/phala/docker-compose.yml (注意空格)
- /dev/sgx_enclave
- /dev/sgx_provision
- /dev/sgx/enclave
- /dev/sgx/provision
- /dev/isgx
phala install isgx
phala install
phala config set
phala start ///启动3~5分钟,运行phala stop
phala stop
下载镜像拷,参考 3.2 如果还没有同步好挖矿节点,快速追上的办法 | Phala Network 百科
phala start //等待3-5小时
docker ps 查看容器是否正常(都UP就可以)
phala status //查看Work注册是否成功,注册成功加入
第三步 创建池
1.创建抵押池:create
2.设置抵押池的上限:set Cap //5000~10000 都无所谓//
3.设置抵押池手续费比例:set Payout Pref //100//
4.往池里添加抵押币 Stakepool Info ---->Contribute // 添加你的币//
检证》—开发者—链状态----phalaStakePool—stakePools(u64):Option----u64(填入你也PID)
5.phala status 查看Work-Publish-Key //这个可以查看GAS等信息
6.Add Worker 加入Work_publish-Key
phalaStakePool—stakePools(U64):OPtion—填poolId
Start—输入抵押币—comfirm
验证
开发者—链状态----PhalaRegistry----workers(workerPublicKey):Option—Work_publish-Key
注:initialScore 可以查看得分
https://phala.one/stake/
可以来看初始最低质押