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