这个和Ubuntu还是有些区别,在CentOS修改成如下: grub2-mkconfig -o /boot/grub2/grub.cfg 转载于:https://www.cnblogs.com/EasonJim/p/9097133.html