修改日期 | 修改人 | 备注 |
2021-05-30 16:59:45[当前版本] | 文艺范儿 | 格式调整 |
2021-05-25 01:36:47 | 文艺范儿 | 格式调整 |
2021-05-03 18:45:43 | 文艺范儿 | 格式调整 |
2021-04-30 12:39:19 | 文艺范儿 | 格式调整 |
详情见官网:
https://github.com/Chia-Network/chia-blockchain/wiki/INSTALL#centos--redhat--fedora
sudo apt-get install python3.7-venv python3.7-distutils python3.7-dev git -y
sudo apt-get update
sudo apt-get upgrade -y
# Checkout the source and install
git clone https://github.com/Chia-Network/chia-blockchain.git -b latest --recurse-submodules
cd chia-blockchain
chmod +x ./install.sh
sh install.sh
. ./activate
# The GUI requires you have Ubuntu Desktop or a similar windowing system installed.
# You can not install and run the GUI as root
chmod +x ./install-gui.sh
sh install-gui.sh
cd chia-blockchain-gui
npm run electron &
To Update/Upgrade from previous version
cd chia-blockchain
chia stop -d all
deactivate
git fetch
git checkout latest
git reset --hard FETCH_HEAD
# If you get RELEASE.dev0 then delete the package-lock.json in chia-blockchain-gui and install.sh again
sh install.sh
. ./activate
chia init
# The GUI requires you have Ubuntu Desktop or a similar windowing system installed.
# You can not install and run the GUI as root
cd chia-blockchain-gui
git fetch
cd ..
sh install-gui.sh
cd chia-blockchain-gui
npm run electron &
Troubleshooting
Sometimes stray daemons left over from previously running processes will cause strange bugs/errors when upgrading to a new version. Make sure all daemons and chia processes are killed before installing or upgrading.
This is normally done by executing chia stop -d all from the upgrade example above.
But it doesn't hurt to double check using ps -aux | grep chia to make sure there are no chia processes left running. You may have to manually kill the chia daemon if an install and chia start was performed without first running chia stop -d all
If all else fails, rebooting the machine and restarting the chia daemon/processes usually does the trick.