Linux永久關閉防火牆 vsftp 開機自啟動

2021-06-02 23:36:29 字數 528 閱讀 7169

永久開啟或則關閉chkconfig iptables on

chkconfig iptables off

即時生效:重啟後還原

service iptables start

service iptables stop

開機預設vsftp服務自動啟動:

方法一:(常用\方便)

[root@localhost etc]# chkconfig --list|grep vsftpd ( 檢視情況)

vsftpd          0:off   1:off   2:off   3:off   4:off   5:off   6:off

[root@localhost etc]# chkconfig vsftpd on  (執行on設定)

方法二:

修改檔案 /etc/rc.local , 把行/usr/local/sbin/vsftpd & 插入檔案中,以實現開機自動啟動。

Centos 永久關閉防火牆

1開啟虛擬機器,然後輸入命令 systemctl status firewalld.service 並按下回車鍵。2 出現上圖中的active running 此時說明防火牆已經開啟了,3在命令列中輸入systemctl stop firewalld.service命令,進行關閉防火牆。4然後再使用...

永久關閉selinux 防火牆

1 永久方法 需要重啟伺服器 修改 etc selinux config檔案中設定selinux disabled 然後重啟伺服器。2 臨時方法 設定系統引數 使用命令setenforce 0 附 setenforce 1 設定selinux 成為enforcing模式 setenforce 0 設...

Linux永久關閉防火牆 vsftp 開機自啟動

永久開啟或則關閉 chkconfig iptables on chkconfig iptables off 即時生效 重啟後還原 service iptables start service iptables stop 開機預設vsftp服務自動啟動 方法一 常用 方便 root localhost...