iptables開啟和關閉

2022-08-12 15:27:17 字數 1311 閱讀 6033

檢視iptables規則的話,就用iptables -l這個命令就好了~~,ok

清除iptables規則的話,用iptables -f ,that『s aaaaalllllll~~

關閉,可以有兩種命令,一種是敲擊 /etc/init.d/iptables stop   另一種是 services iptables stop ,ok

看到了吧,上面就是兩個命令的使用。

然後我們在執行一些chkconfig,看看 六個狀態下的命令開啟設定,因為這個是涉及到重啟以後是否你修改的命令~~

是吧,七個狀態 還記得麼,關機的時候敲init 0,狀態那裡0的一列全是關閉。

那chkconfig iptables off(設定自動啟動為關閉)

chkconfig iptables on(設定自動啟動為啟動)

chkconfig --del iptables(移除開啟自啟動)

chkconfig --add iptables(增加開啟自啟動)

這幾個命令你回了麼? :)

檢視iptables規則的話,就用iptables -l這個命令就好了~~,ok

清除iptables規則的話,用iptables -f ,that『s aaaaalllllll~~

關閉,可以有兩種命令,一種是敲擊 /etc/init.d/iptables stop   另一種是 services iptables stop ,ok

看到了吧,上面就是兩個命令的使用。

然後我們在執行一些chkconfig,看看 六個狀態下的命令開啟設定,因為這個是涉及到重啟以後是否你修改的命令~~

是吧,七個狀態 還記得麼,關機的時候敲init 0,狀態那裡0的一列全是關閉。

那chkconfig iptables off(設定自動啟動為關閉)

chkconfig iptables on(設定自動啟動為啟動)

chkconfig --del iptables(移除開啟自啟動)

chkconfig --add iptables(增加開啟自啟動)

這幾個命令你回了麼? :)

開啟和關閉Oracle Flashback

1 開啟flashback 關閉資料庫 sql shutdown immediate 啟動到mount方式 sql startup mount 如果歸檔沒有開啟,開啟歸檔 因為flashback依賴media recovery,所以在開啟flashback之前必須先啟用歸檔 sql alter da...

python selelnium開啟和關閉瀏覽器

第一次寫自動化指令碼,用下面 練練手。此 是在pycharm1下編寫 from selenium import webdriver 初始化乙個火狐瀏覽器例項 driver webdriver.firefox 最大化瀏覽器 driver.maximize window 通過get 方法,開啟乙個url...

selinux 開啟和關閉

對於新手來說,linux的selinux困擾了一大批學員,開啟後,導致檔案許可權修改不了等問題,下面就是關閉設定setlinux的方法 檢視selinux狀態 1 usr sbin sestatus v 如果selinux status引數為enabled即為開啟狀態 selinux status ...