【k8s】1,在VMware安装ubuntu虚拟机
1. 安装VMware下载:https://pan.baidu.com/s/1dlvgig2taY7h82lmIeKHXg提取码:o8ql安装方式不再赘述。2. 安装ubuntu虚拟机下载虚拟机镜像:ubuntu-18.04.4-live-server-amd64提取码:rz7n
·
1. 安装VMware
下载:https://pan.baidu.com/s/1dlvgig2taY7h82lmIeKHXg 提取码:o8ql
安装方式不再赘述。
2. 安装master节点
下载虚拟机镜像:ubuntu-18.04.4-live-server-amd64 提取码:rz7n
3. 安装node节点
同样的方式安装2个node节点,注意安装的时候虚拟机的名称设置为node1,node2
4. 配置master节点、node节点
同样对master节点和node节点做如下配置
sudo vim /etc/sudoers
# 添加一行
paas ALL=(ALL:ALL) ALL
# 给root用户设置密码
sudo passwd root
# 允许root用户ssh登录
sudo sed -i "s/#PermitRootLogin.*/PermitRootLogin yes/g" /etc/ssh/sshd_config
# 取消超时退出
sudo sed -i "s/#ClientAliveInterval.*/ClientAliveInterval 0/g" /etc/ssh/sshd_config
# 重启ssh使配置生效
sudo /etc/init.d/ssh restart
[c:\~]$ ssh root@192.168.1.107
Connecting to 192.168.1.107:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.
Welcome to Ubuntu 18.04.4 LTS (GNU/Linux 4.15.0-111-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Sat Jul 18 15:06:18 UTC 2020
System load: 0.04 Processes: 170
Usage of /: 20.1% of 19.56GB Users logged in: 1
Memory usage: 13% IP address for ens33: 192.168.1.107
Swap usage: 0%
53 packages can be updated.
0 updates are security updates.
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
root@master:~#
至此,虚拟机安装完成
更多推荐
已为社区贡献3条内容
所有评论(0)