linux防火墙配置
        
                
                    
                    有勇气的牛排
                
            
                    
                    535
                
            
                    
                    
                    linux
                    
                
            
                    
                    2023-05-16 23:09:40
                
            
        
        
        
        CentOS
查看防火墙状态
systemctl status firewalld
暂时关闭防火墙
systemctl stop firewalld
永久关闭防火墙
systemctl disable firewalld
重启防火墙
systemctl enable firewalld
  
                <h2><a id="CentOS_0"></a>CentOS</h2>
<p><strong>查看防火墙状态</strong></p>
<pre><div class="hljs"><code class="lang-shell">systemctl status firewalld
</code></div></pre>
<p><strong>暂时关闭防火墙</strong></p>
<pre><div class="hljs"><code class="lang-shell">systemctl stop firewalld
</code></div></pre>
<p><strong>永久关闭防火墙</strong></p>
<pre><div class="hljs"><code class="lang-shell">systemctl disable firewalld
</code></div></pre>
<p><strong>重启防火墙</strong></p>
<pre><div class="hljs"><code class="lang-shell">systemctl enable firewalld
</code></div></pre>
            
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
            
                
                
                
            
        
    
    
    
 
评论区