您現在的位置是:首頁 > 運動
Linux關閉防火牆和Selinux
網咖關閉防火牆會怎麼樣
1。檢視防火牆狀態
systemctl status firewalld
2。臨時關閉防火牆
systemctl stop firewalld
3。開機啟動關閉防火牆(永久關閉)
systemctl disable firewalld
4。開啟防火牆
systemctl start firewalld
5。開機時自動開啟防火牆
systemctl enable firewalld
Selinux關閉
檢視selinux狀態
getenforce #返回結果除了Enforcing這個狀態之外的狀態其他都是關閉狀態
2。關閉selinux
vi /etc/sysconfig/selinux
將下面的 SELINUX 改成disabled即為關閉
然後重啟系統 reboot
# 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
# 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
推薦文章
- 2023年數碼好物盤點,8款產品推薦,都值得期待!
答:在我看來,2023年最值得期待的數碼產品無外乎智慧手機、膝上型電腦、投影儀、顯示器、遊戲裝置和VR裝備...
- 美參與襲擊伊朗彈藥庫,法國呼籲退出北約,俄羅斯獲得喘息之機
法國政客呼籲退出北約隨著俄烏衝突局勢的不斷擴大,北約軍事委員會主席鮑爾出面對俄喊話,稱北約已經做好與俄羅斯進行正面衝突的準備,假如俄羅斯越過紅線,北約將展開反擊...
- 衝牙器適合什麼人群使用?個護師揭秘四大騙局陷阱!
適合使用衝牙器的朋友也要選擇各項引數都經過專業技術調校的優質產品哦,因為毫無技術實力的劣質產品存在極大的傷牙隱患,千萬不能用...