CentOS8 Disable IPV6 and Selinux


#ifconfig -a | grep inet6
#ip addr show | grep net6

#vi /etc/default/grub
GRUB_CMDLINE_LINUX----该行增加ipv6.disable=1

[root@centos8 ~]# grep CMDLINE /etc/default/grub
GRUB_CMDLINE_LINUX="ipv6.disable=1 crashkernel=auto resume=/dev/mapper/cl-swap rd.lvm.lv=cl/root rd.lvm.lv=cl/swap rhgb quiet"

#grub2-mkconfig -o /boot/grub2/grub.cfg

#vi /etc/sysctl.conf
net.ipv6.conf.all.disable_ipv6 =1
net.ipv6.conf.default.disable_ipv6 =1

[root@centos8 ~]# tail -n 2 /etc/sysctl.conf
net.ipv6.conf.all.disable_ipv6 =1
net.ipv6.conf.default.disable_ipv6 =1

#vi /etc/selinux/config
SELINUX=disabled


#reboot


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM