CentOS7上面关闭ipv6的有效方法

1,修改/etc/default/grub GRUB_CMDLINE_LINUX="ipv6.disable=1 rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet" 只需要在grub_CMDLINE_LINUX 前面加上 ipv6.disable=1 然后运...

1,修改/etc/default/grub


GRUB_CMDLINE_LINUX="ipv6.disable=1 rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet"


只需要在grub_CMDLINE_LINUX 前面加上 ipv6.disable=1 然后运行

grub2-mkconfig -o /boot/grub2/grub.cfg 重新生成 引动菜单 ,重新启动系统就可以了

  • 发表于 2018-03-25 18:00
  • 阅读 ( 41 )

你可能感兴趣的文章

相关问题

0 条评论

请先 登录 后评论
石天
石天

437 篇文章

作家榜 »

  1. shitian 662 文章
  2. 石天 437 文章
  3. 每天惠23 33 文章
  4. 小A 29 文章