分类 "CentOS" 下的文章
设置主机名
hostnamectl set-hostname k8s-master
echo "192.168.119.151 k8s-master" >> /etc/hosts #master
#生成公钥
ssh-keygen
ssh-copy-id -i .ssh/id_rsa.pub root@ip
本文以安装 nodejs 16 为例
hostnamectl set-hostname k8s-master
echo "192.168.119.151 k8s-master" >> /etc/hosts #master
#生成公钥
ssh-keygen
ssh-copy-id -i .ssh/id_rsa.pub root@ip
本文以安装 nodejs 16 为例