#本文網址https://sdxtlhy.github.io/ipfs/centos7.x_64cloudserver.html
#設置多成IPFS星際去中心化站點
#此文适合 Centos7.x 8.x 64位雲服務器安裝go-ipfs 最新版本 鏡像站
#默認使用root用戶安裝在/root/目錄
#使用ssh以root用戶登錄雲服務器
cd /root
yum -y install wget
#https://sdxtlhy.github.io/ipfs/setupcentos64.sh
rm setupcentos64.sh -f
wget https://sdxtlhy.github.io/ipfs/setupcentos64.sh
chmod +x setupcentos64.sh
#安裝腳本下載使用了鏡像站,如無法下載可修改為官網下載鏈接
#執行安裝腳本必須把n.n.n 替換為go-ipfs最新版本號(例如:0.10.0) 鏡像站,xxx.xxx.xxx.xxx替換為你的雲服務器公網ip
./setupcentos64.sh n.n.n xxx.xxx.xxx.xxx
#安裝完成
reboot
#啟動成功後,所有設備均可使用http://ip:8080以ipfs/hash方式訪問,保存書籤只能保存IP+端口或者域名+端口,即保存書籤後,必須修改書籤去掉/ipfs/hash,只保存IP:端口或者域名:端口。或者http://ip:8080/ipns/QmSeJ41iXwebzm3KPTixBc3zoetBD61df76BRjE4RuY4YB/以ipns方式訪問。http://ip:5001/webui查看節點。在手機端或者PC可以使用ssh監控雲服務器。雲服務器優點是穩定,訪問速度快,有公網IP,缺點是當服務提供商認為內容不妥時,會被秒關停。