1.查看centos防火墙得状态

[root@MiWiFi-RA67-srv ~]# ​systemctl status firewalld

2.暂时关闭防火墙命令

[root@MiWiFi-RA67-srv ~]# ​systemctl stop firewalld

3.开机关闭防火墙命令

[root@MiWiFi-RA67-srv ~]# ​systemctl disable firewalld

========================================

1.查看selinxu的系统状态

[root@MiWiFi-RA67-srv ~]# ​getenforce

2.临时关闭selinxu命令

[root@MiWiFi-RA67-srv ~]# ​setenforce 0

3.永久关闭selinxu方法(修改配置文件,即可永久关闭)

[root@MiWiFi-RA67-srv ~]# ​vi /etc/selinux/config

# This file controls the state of SELinux on the system.

# SELINUX= can take one of these three values:

#     enforcing - SELinux security policy is enforced.

#     permissive - SELinux prints warnings instead of enforcing.

#     disabled - No SELinux policy is loaded.

SELINUX=​disabled    ​//这里改成disable

# SELINUXTYPE= can take one of three values:

#     targeted - Targeted processes are protected,

#     minimum - Modification of targeted policy. Only selected processes are protected.

#     mls - Multi Level Security protection.

SELINUXTYPE=targeted