CentOS 7 关闭防火墙和SELinux

[修改机器名]

# vi /etc/hostname

[关SELinux]

# vi /etc/selinux/config
设置SELINUX=disabled

[关防火墙]

# systemctl stop firewalld
# systemctl disable firewalld
# systemctl status firewalld 看状态
firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled)
Active: inactive (dead)

Sep 01 16:43:44 localhost.localdomain systemd[1]: Starting firewalld - dynamic firewall daemon...
Sep 01 16:43:47 localhost.localdomain systemd[1]: Started firewalld - dynamic firewall daemon.
Sep 01 16:50:56 k8s-node1 systemd[1]: Stopping firewalld - dynamic firewall daemon...
Sep 01 16:50:57 k8s-node1 systemd[1]: Stopped firewalld - dynamic firewall daemon.

设置完成后重启

# reboot

上一篇:python 面向对象编程 - 小游戏


下一篇:jQuery笔记(一)