您的位置:首页 > 理论基础 > 计算机网络

linux 重启网卡/网络

2012-03-08 21:27 302 查看
修改了IP之后,要使其生效,有几种方法
1、ifdown/ifup
#ifdown eth0
#ifup eth0
2、ifconfig
#ifconfig eth0 down
#ifconfig eth0 up
3、network
#/etc/init.d/network restart
这条命令是重启整个网络
重启之后需要重新登录服务器,比较麻烦
可使用 nohup /etc/init.d/network restart &
本文出自 “lynnteng0” 博客,请务必保留此出处http://lynnteng0.blog.51cto.com/2145094/800743
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: