开启容器应用部署能力项
容器应用部署能力为AtlasEdge的可选特性,用户可根据需要自行打开对应能力项,并重启AtlasEdge软件使配置生效。
命令格式
- 执行命令:cd AtlasEdge软件安装路径/AtlasEdge/edge_work_dir/edge_om/bin进入脚本文件所在路径。示例如下:
cd /opt/middleware/AtlasEdge/edge_work_dir/edge_om/bin
- 根据需要使用以下命令:
- ./site_ability_policy.sh disable_all --on 禁止能力项总开关打开,禁止所有能力项。
- ./site_ability_policy.sh allow op1 op2 开启能力项。可选参数请参见表1。
- ./site_ability_policy.sh -h(或-h,--help)显示主命令帮助信息。
- ./site_ability_policy.sh disable_all -h(或--help)显示disable_all子命令帮助信息。
- ./site_ability_policy.sh allow -h(或--help)显示allow子命令帮助信息。

- 升级场景下,若老版本没有能力项配置,新版本能力项配置默认会全部开启,保证业务的连续性。若老版本有能力项配置,则保持相关配置不变。
- 恢复出厂设置场景下,已配置的能力项配置开关会被清除,恢复全部默认关闭状态,需要用户重新配置开关。
使用示例

- site_ability_policy.sh命令必须使用root帐号执行。
- 执行命令后,需要重启AtlasEdge软件使配置生效。
对于Atlas 500 智能小站(型号 3000),执行cd /opt/middleware/AtlasEdge/edge_work_dir/edge_om/bin命令进入脚本文件所在路径。
- 示例1:关闭所有能力项开关,执行以下命令。
./site_ability_policy.sh disable_all --on
回显结果如下:
Write to config file success { "disable_all": true, "allow": { "create_container": false } }
需要重启AtlasEdge软件使配置生效。即进入“/opt/middleware/AtlasEdge”目录,执行./run.sh restart命令。
- 示例2:开启部署容器应用能力项开关,执行以下命令。
./site_ability_policy.sh allow --create_container
回显结果如下:
Write to config file success { "disable_all": false, "allow": { "create_container": true } }
需要重启AtlasEdge软件使配置生效。即进入“/opt/middleware/AtlasEdge”目录,执行./run.sh restart命令。