在 Linux 系统中有时候为了将 Linux 系统作为服务器使用而需要设置静态 ip,设置完成后必须得重启网络才能生效,这里介绍两种重启网络的方法:
1.通过输入命令:sudo /etc/init.d/networking restart
重启网络
2.通过输入命令:sudo ifconfig eth0 down
; sudo ifconfig eth1 up
重启网络
在 Linux 系统中有时候为了将 Linux 系统作为服务器使用而需要设置静态 ip,设置完成后必须得重启网络才能生效,这里介绍两种重启网络的方法:
1.通过输入命令:sudo /etc/init.d/networking restart
重启网络
2.通过输入命令:sudo ifconfig eth0 down
; sudo ifconfig eth1 up
重启网络