1. 我是皮皮虾首页
  2. 网站部署

centos防火墙关闭

关闭selinux

[root@hdss-7-200 harbor]# sestatus  
SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             targeted
Current mode:                   enforcing
Mode from config file:          enforcing
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Max kernel policy version:      31

# 临时关闭
[root@hdss-7-200 harbor]# setenforce 0
# 永久关闭,需要重启
vim /etc/selinux/config
修改:SELINUX=disable

关闭防火墙

systemctl stop firewalld
systemctl disable firewalld

原创文章,作者:站长,如若转载,请注明出处:https://wsppx.cn/1647/%e7%bd%91%e7%ab%99%e9%83%a8%e7%bd%b2/

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注