linux debian怎么重启网卡,在Ubuntu和Debian中重启网络的首选方法是什么 |
您所在的位置:网站首页 › debian8安装proxmox › linux debian怎么重启网卡,在Ubuntu和Debian中重启网络的首选方法是什么 |
问题描述 当我使用以下方法重新启动网络时: /etc/init.d/networking restart 我收到此警告: Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces 那么,现在进行更改后重新启动网络的最佳方法是什么? 该问题也适用于Debian,因为netbase软件包是从debian继承的。 最佳思路 只是说重新启动选项不见了 /etc/init.d/networking stop; /etc/init.d/networking start 注意只有一行!通过网络运行网络重新启动时,这一点很重要。 次佳思路 运行不带参数的init.d命令,它将告诉您用法: ~# /etc/init.d/networking Usage: /etc/init.d/networking {start|stop} 似乎不建议重新启动 至少由于以下原因,它在Debian中也不推荐使用: netbase (4.38) unstable; urgency=low * Create /etc/sysctl.d/bindv6only.conf on upgrades and new installs to set net.ipv6.bindv6only=1. * Made the init script check for swap over the network. (Closes: #540697) * Temporarily d |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |