您现在的位置是:首页 >技术教程 >CKA 笔记网站首页技术教程
CKA 笔记
hostnamectl set-hostname xianchaomaster1 && bash
hostnamectl set-hostname xianchaonode1 && bash
sudo vi /etc/network/interface
/etc/init.d/networking restart
auto ens33
iface ens33 inet static
address 192.168.8.100
netmask 255.255.255.0
gateway 192.168.8.2
dns-nameserver 8.8.8.8
允许root登录:
vi /etc/ssh/sshd_config
PermitRootLogin yes
service ssh restart
修改/etc/vim/vimrc.tiny ,增加set nocompatible set backspace=2
vi /etc/hosts
192.168.108.201 xianchaomaster1
192.168.108.202 xianchaonode1
apt install ntpdate
Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend.
Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend.
Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend.
Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. </