Restart networking service on Debian
Most Debian user should run into this problem before they find out a good way to restart networking service.
Debian deprecated the restart option of /etc/init.d/networking script for security issue. Users will get following warning when they do restart:
And their network won't be restart finally.
How to restart the networking service? There are several ways to achieve that. (Login as root or sudo it)
Hope those helpful for you and me. :-)
Debian deprecated the restart option of /etc/init.d/networking script for security issue. Users will get following warning when they do restart:
Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces ... (warning).
And their network won't be restart finally.
How to restart the networking service? There are several ways to achieve that. (Login as root or sudo it)
- /etc/init.d/networking stop && /etc/init.d/networking start (You'd better run the command on console than remote it)
- inovke-rc.d networking restart
Hope those helpful for you and me. :-)
Comments
Post a Comment