Open permanently or close chkconfig iptables on
Chkconfig iptables off
Immediate effect, restore after reboot
Service Iptables Start
Service Iptables Stop
Boot default vsftp service starts automatically:
Method one: (Common \ Convenient)
[Email protected] etc]# chkconfig--list|grep vsftpd (view)
VSFTPD 0:off 1:off 2:off 3:off 4:off 5:off 6:off
[[email protected] etc]# chkconfig vsftpd on (performing on setting)
Method Two:
Modify the file/etc/rc.local, put the line/USR/LOCAL/SBIN/VSFTPD & Insert the file in order to enable the boot automatically.
http://blog.csdn.net/binyao02123202/article/details/7173127
When the firewall is turned on, do the following settings, open the relevant port, modify the/etc/sysconfig/iptables file, add the following:
-A rh-firewall-1-input-m state--state new-m tcp-p TCP--dport 80-j ACCEPT
-A rh-firewall-1-input-m state--state new-m tcp-p TCP--dport 22-j ACCEPT
Linux Boot from boot