防火牆
CentOS 7.0默認使用的是firewall作爲防火牆
查看防火牆狀態
firewall-cmd --state
停止firewall
systemctl stop firewalld.service
啓用firewall開機啓動
systemctl enable firewalld.service
禁止firewall開機啓動
systemctl disable firewalld.service
selinux
這個可能不是很熟悉
簡介
-
SELinux全稱爲Security-Enhanced Linux,是一種訪問控制體系,在這種訪問控制體系的限制下,進程只能訪問那些在他的任務中所需要文件。
-
SELinux是由美國國家安全局NSA對於強制訪問控制的實現,是 Linux上最傑出的新安全子系統。SELinux可以最大限度地保證Linux系統的安全。
關閉方式
- 打開selinux的配置文件
vim /etc/selinux/config
- 將SELINUX=enforcing改爲SELINUX=disabled
寫在最後
本人爲純小白,所寫的博客也是因爲學習使用中遇到的問題進行查找資料然後解決後才編寫的,其中如果有某些有錯誤,或者涉及侵權的請聯繫我,
QQ : 994961015
E-mail: [email protected]