Ceramic 主网搭建

安装依赖

echo "安装必要环境"
programs=("curl" "tar" "wget" "clang" "pkg-config" "libssl-dev" "jq" "build-essential" "git" "make" "ncdu" "expect")
for program in "${programs[@]}"; do
 if ! command -v "$program" > /dev/null; then
    apt-get update
    apt-get install -y "$program"
  fi
done

安装NodeJS

echo " 安装nodejs18"
curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash -
apt install nodejs -y

安装 NVM 设置环境变量

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash

source .bashrc

使用 NVM安装指定nodejs环境

nvm install 16

安装守护

npm install -g @ceramicnetwork/cli
启动
ceramic daemon