要求 https://maas.io/docs/installation-requirements 安装maas sudo snap install --channel=3.3 maas 安装postgres sudo apt update -y sudo apt install -y postgresql 设置数据库 sudo -i -u postgres psql -c "CREATE USER \"$MAAS_DBUSER\" WITH ENCRYPTED PASSWORD '$MAAS_DBPAS