码迷,mamicode.com
首页 > 系统相关 > 详细

Linux网络配置指令

时间:2017-04-09 22:39:21      阅读:305      评论:0      收藏:0      [点我收藏+]

标签:关闭   运行   art   iptables   restart   启动   table   res   linu   

重启网卡
service network restart


关闭防火墙

永久关闭防火墙(下次启动机器才起作用):
chkconfig iptables off

永久关闭防火墙(立即生效):
service iptables stop

启动防火墙  
service iptables start

查看防火墙配置
iptables -L -n


两个命令同时运行,运行完成后查看防火墙关闭状态 :
service iptables status

Linux网络配置指令

标签:关闭   运行   art   iptables   restart   启动   table   res   linu   

原文地址:http://www.cnblogs.com/poterliu/p/6686799.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!