修改网卡地址 /etc/network/interfaces
auto eth0
iface eth0 inet static
address 10.1.0.101
gateway 10.1.0.1
netmask 255.255.252.0
安装 openssh
apt-get install openssh-server
修改LANG变量 /etc/default/locale
en_US.UTF-8
zh_CN.UTF-8
apt 安装和搜索
apt-get install
apt-cache search
apt 源 /etc/apt/sources.list
deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
重启网卡
service networking restart
ifdown ethx && ifup ethx
ifconfig ethx down && ifconfig ethx up
查看该命令由哪个包安装 dpkg -S /usr/bin/docker
查看该包的安装list dpkg -L docker.io
时间: 2024-10-25 13:06:41