CentOS从6换到7, 还没有系统的学习。虽然主要用的是systemd,但还是有一下特有的区别,会逐步整理如下:
官网文档索引:https://access.redhat.com/documentation/en/red-hat-enterprise-linux/
管理员手册:https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/index.html
一,关于 firewall 和 iptables
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Security_Guide/sec-Using_Firewalls.html
简单来说,就是firewalld 替换了 iptables。详细的使用,略了。firewalld的底层还是用iptables命令与内核通信的,只是上层逻辑更复杂了(或者更简单了?)
以前的操作是:
service iptables stop
现在换成:
systemctl disable firewalld
二, 关掉 selinux
与之前版本一样。
[root@t206 ~]# sed -i "s/SELINUX=*/SELINUX=disabled/" /etc/selinux/config