Debian12Bookworm切换cgroup版本到v1的方法

鬼谷子叔叔 - 2024-12-25 17:34

操作步骤

环境变量PATH

export PATH=$PATH:/usr/sbin

打开grub配置文件

打开文件/etc/default/grub

vi /etc/default/grub

添加cgroup启动项

在GRUB_CMDLINE_LINUX里添加cgroup启动项,如果有多个启动项以空格分开。

保留现有启动项不要删除!!!是在现有启动项后面添加“splash systemd.unified_cgroup_hierarchy=false”!!!

GRUB_CMDLINE_LINUX="splash systemd.unified_cgroup_hierarchy=false"

更新grub

update-grub

验证grub

cat /boot/grub/grub.cfg | grep unified_cgroup_hierarchy

重启系统

重新启动操作系统

检验

cat /proc/cmdline | grep unified_cgroup_hierarchy