OpenVZ:无法在运行的容器上设置容量
时间:2020-02-23 14:44:23 来源:igfitidea点击:
尝试从主机节点调整VPS上的时间时遇到此错误?
[root@server ~]# vzctl set 111 --capability sys_timen --save Unable to set capability on running container WARNING: Some of the parameters could not be applied to a running container. Please consider using --setmode option
有两种可能的解决方案:
1.停止VPS并使用以下命令启动VPS:
vzctl set 111 --capability sys_timen --save
2.使用此命令,下次重启VPS时将启用该参数:
vzctl set 111 --capability sys_timen --setmode restart --save
*在使用此命令的某些情况下,请小心选项2 VPS会自行重新启动!