1、執行、停止、禁用firewalld
啟動:# systemctl start firewalld
檢視狀態:# systemctl status firewalld 或者 firewall-cmd --state
停止:# systemctl disable firewalld
禁用:# systemctl stop firewalld
那怎麼開啟乙個埠呢
新增firewall-cmd --zone=public --add-port=80/tcp --permanent (--permanent永久生效,沒有此引數重啟後失效)
重新載入
firewall-cmd --reload
檢視
CentOS7 為firewalld新增開放埠
firewalld是centos7的一大特性,最大的好處有兩個 支援動態更新,不用重啟服務 第二個就是加入了防火牆的 zone 概念 firewalld有圖形介面和工具介面,圖形介面請參照官方文件 我們以字元介面介紹 firewalld的字元介面管理工具是firewall cmd firewalld...
為centos7安裝顯示卡驅動
補充 檢視selinux狀態命令 getenforceenforcing是開啟,disabled是關閉。關掉selinux的命令 vi etc selinux config將selinux enforcing改為selinux disabled 設定後需要重啟才能生效 2.阻止 nouveau模組的...
CentOS7修改網絡卡為靜態ip
開啟vmware的虛擬網路編輯器,選中vmnet8,開啟nat設定。接下來就可以看到子網ip與閘道器 在 etc sysconfig network scripts下面找對自己的網絡卡,我的是ifcfg ens33。修改bootproto static,onboot yes.之後修改ipaddr的值...