裸金属服务器 BMS-镜像内禁用关机命令:操作步骤

时间:2024-12-20 14:05:04

操作步骤

禁用方法可自行设置,例如:

在文件/root/.bash_profile中添加如下语句:

alias shutdown="echo 'Please do not run shutdown here. Go to the console to stop the VM.'"

alias poweroff="echo 'Please do not run poweroff here. Go to the console to stop the VM.'"

support.huaweicloud.com/bpicg-bms/zh-cn_topic_0000001963907189.html