裸金属服务器 BMS-镜像内禁用关机命令:操作步骤
操作步骤
禁用方法可自行设置,例如:
在文件/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.'"