Close the firewall in linux

Foreword: After a project's linux server crashes and restarts,

           It is found that the project under tomcat cannot be accessed, but the ip of the server can be pinged in both directions, so the following knowledge points are brought out under the occurrence of this problem:

*, take effect permanently, will not recover after restart

Enable: chkconfig iptables on
Off: chkconfig iptables off

 

*, take effect immediately, restore after restart

Start: service iptables start
Shutdown: service iptables stop

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326509317&siteId=291194637