Skip to content

Instantly share code, notes, and snippets.

@kaichao
Created September 3, 2019 08:23
Show Gist options
  • Save kaichao/27d14f9a27bc0460162e4be6dc647e43 to your computer and use it in GitHub Desktop.
Save kaichao/27d14f9a27bc0460162e4be6dc647e43 to your computer and use it in GitHub Desktop.
centos7下禁用IPv6
编辑/etc/default/grub文件:
GRUB_CMDLINE_LINUX参数加上ipv6.disable=1
以root运行命令:
grub2-mkconfig -o /boot/grub2/grub.cfg
编辑/etc/ssh/sshd_config 文件,增加一行:
AddressFamily inet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment