切换界面风格
CLI运维工具
为了简化Linux系统管理员维护丰盘系统的负担,我们在安装丰盘的时候内置了一个CLI工具 xpc.sh,(存放在 /opt/xpan/tools/xpc.sh
目录),可以使用此工具对丰盘系统进行下线、重新上线、重启以及更改部分配置。
更新工具至最新版本
使用前可运行如下命令更新 xpc.sh 工具到最新版本,注意将URL网址里的license参数(示例值XXXXXYYYYY)替换为您申请的许可证KEY。
bash
# 使用curl命令下载脚本
# 如果此命令运行报错提示 curl找不到command not found,可改用下面的 wget 命令
curl -fsSL -o /opt/xpan/tools/xpc.sh "https://ota.xpan.ekbcloud.com/api/v1/ota/scriptfile?name=xpc&license=XXXXXYYYYY" && sudo chmod u+rx,g+rx /opt/xpan/tools/xpc.sh
# 注意第二个参数是大写字母O
wget -q -O /opt/xpan/tools/xpc.sh "https://ota.xpan.ekbcloud.com/api/v1/ota/scriptfile?name=xpc&license=XXXXXYYYYY" && sudo chmod u+rx,g+rx /opt/xpan/tools/xpc.sh
直接运行此命令可以看到调用说明。
bash
sudo /opt/xpan/tools/xpc.sh
丰盘运维助手: v1.2.3+221107
系统运维手册: https://www.ekbcloud.com/docs/admin_manual/linuxop.html
Command line tools for managing XPAN system.
Usage: xpc COMMAND
List of Commands:
up: Make sure all containers are running.
stop: Temporary shutdown XPAN system without data loss.
restart: Restart the XPAN system.
config: Reset the config of XPAN system.
update: Update system components to latest stable version.
add: Integrate new components like OnlyOffice to XPAN system.
rm: Remove optional components like OnlyOffice from XPAN system.
Run 'xpc COMMAND [-h|--help]' for more information on specific command.