Created
          September 3, 2019 08:23 
        
      - 
      
 - 
        
Save kaichao/27d14f9a27bc0460162e4be6dc647e43 to your computer and use it in GitHub Desktop.  
    centos7下禁用IPv6
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 编辑/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