在线安装Microk8s
安装snap
1
2
3
4
5yum install -y epel-release
yum install -y snapd
systemctl enable --now snapd.socket
systemctl start snapd
ln -s /var/lib/snapd/snap /snap安装microk8s
1 | snap install microk8s --classic --channel=1.23/stable |
Add following line to spec file
1 | %define _build_id_links none |
peter
并设置密码huawei@123
1 | useradd peter |
chage
命令设置密码过期时间,这里设置7天后密码过期,过期后立即失效1 | chage -m 0 -M 7 -I 0 peter |
1 | /etc/init.d/vpxa stop ; /etc/init.d/hostd restart |