# 首先申请root权限
# Edit /etc/default/grub and change the value of kernel parameter ipv6.disable from 1 to 0 in line GRUB_CMDLINE_LINUX, e.g.:
$ cat /etc/default/grub
GRUB_TIMEOUT=5
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="ipv6.disable=0 crashkernel=auto rhgb quiet"
GRUB_DISABLE_RECOVERY="true"
$ sed -i 's/ipv6.disable=1/ipv6.disable=0/g' /etc/default/grub
# Note: ipv6.disable=0 is the default value, so you can simply remove this argument ipv6.disable from GRUB_CMDLINE_LINUX argument list if you want.
# Regenerate a GRUB configuration file and overwrite existing one using the command shown below.
$ grub2-mkconfig -o /boot/grub2/grub.cfg
# Restart system for the changes to take effect.
$ systemctl enable sshd
$ reboot
启用ipv6模块
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
推荐阅读更多精彩内容
- 使用 google bbr 算法参考 http://www.bandwagonhost.net/268.html ...
- 注意:最新版本的chrome浏览器已支持module语法,需要在web服务器环境下运行! 设置浏览器启用es6语法...