使用一键脚本
仅适用于 Linux amd64 / arm64 平台。
如果你想使用 Docker,请转到使用 Docker。
准备
在使用一键脚本前,请确保你已做好以下准备:
- 确保 systemd 是您的启动进程
- Python 环境(版本:3.10+)
安装
运行安装脚本:
curl -fsSL https://raw.githubusercontent.com/TTB-Network/python-openbmclapi/master/installer/installer.sh | sudo bash -s
提示
你亦可以使用镜像源加速:
curl -fsSL https://ghproxy.bugungu.top/https://raw.githubusercontent.com/TTB-Network/python-openbmclapi/master/installer/installer.sh | sudo bash -s
配置
-
在
/opt/python-openbmclapi/config/config.yml
中,填写你的id
(即CLUSTER_ID
)和secret
(即CLUSTER_SECRET
)。/opt/python-openbmclapi/config/config.ymlcluster:
byoc: false
id: '' # OpenBMCLAPI 的 CLUSTER_ID
public_host: ''
...
secret: '' # OpenBMCLAPI 的 CLUSTER_SECRET
skip_sign: false -
重新启动程序:
systemctl reload python-openbmclapi.service
相关命令
systemctl start python-openbmclapi.service
- 启动 python-openbmclapi 服务。
systemctl stop python-openbmclapi.service
- 关闭 python-openbmclapi 服务。
systemctl reload python-openbmclapi.service
- 重新启动 python-openbmclapi 服务以应用最新配置。
journalctl -f --output cat -u python-openbmclapi.service
- 实时查看 python-openbmclapi 的日志。