Linux常用命令04网络基本操作

1、Debian安装及卸载软件

sudo apt-get install ssh
sudo apt-get remove ssh

2、重启网络(方法一)

ifconfig eth0 down
ifconfig eth0 up

3、重启网络(方法二)

/etc/init.d/networking restart

4、刷新机器名

/etc/init.d/hostname.sh start

5、刷新环境变量

source /etc/profile

Leave a Reply

Your email address will not be published. Required fields are marked *

*