IP配置
# vim /etc/network/interfaces
#开机自动激活eth0接口
auto eth0
#配置eth0接口为静态设置IP地址
iface eth0 inet static
address 192.168.60.110
netmask 255.255.255.0
gateway 192.168.60.2
DNS配置
# vim /etc/resolv.conf
nameserver 114.114.114.114
debian系统中重启网络
systemctl restart networking
debian源设置
- 设置临时源
vi /etc/apt/sources.list
#添加以下一行到文件最后
deb http://mirrors.163.com/debian/ stable main
- 更新软件包列表
apt-get update
- 安装ssh服务
apt-get install ssh
/etc/init.d/ssh restart
其他
- 升级系统所有软件
# apt-get upgrade
- 升级系统版本
# apt-get dist-upgrade
- 也可以使用图形化管理工具 aptitude