SLE Micro 是一款专门针对容器化工作负载打造的超可靠、轻量级的操作系统。它利用了 SUSE Linux Enterprise 经过企业安全强化的安全和合规性组件,并将它们与现代、无法篡改、易于开发人员使用的操作系统平台相结合。
1、sle micro 安装
官方镜像源地址:https://zh.opensuse.org
https://get.opensuse.org/microos/
2、SLE Micrio 配置软件源
官方软件源地址:https://zh.opensuse.org
# zypper是Suse Linux系统的包和补丁管理器,类似centos的yum sudo zypper --help #添加阿里云软件源 sudo zypper ar -fc https://mirrors.aliyun.com/opensuse/distribution/leap/15.2/repo/oss openSUSE-Aliyun-OSS sudo zypper ar -fc https://mirrors.aliyun.com/opensuse/distribution/leap/15.2/repo/non-oss openSUSE-Aliyun-NON-OSS sudo zypper ar -fc https://mirrors.aliyun.com/opensuse/update/leap/15.2/oss openSUSE-Aliyun-UPDATE-OSS sudo zypper ar -fc https://mirrors.aliyun.com/opensuse/update/leap/15.2/non-oss openSUSE-Aliyun-UPDATE-NON-OSS sudo zypper ar -fc https://mirrors.aliyun.com/opensuse/update/leap-micro/5.4/sle leap-micro #刷新软件包源 zypper refresh #查看软件源 zypper lr
SLE Micrio 安装包相关命令
文档参考地址: SUSE Documentation
# SLE Micro引入了事务性更新,允许您对根文件系统应用一项或多项更改 # 使用transactional-update shell 安装多个软件包,对文件系统的更改并使用该exit命令离开shell后,需要重新启动主机以应用更改. transactional-update shell zypper search-packages wget zypper install wget exit reboot # transactional-update --continue 可以进行多项更改而无需重新启动,每次运行时都会创建一个单独的快照,其中包含上一个快照的所有更改以及您的新更改,需要重新启动主机以应用更改 transactional-update pkg install package_1 transactional-update --continue 13 pkg install package_2 reboot
3、SLE Micrio配置静态ip
SLE Micrio通过NetworkManager配置网络,使用nmcli命令行进行网络配置
# 显示网络连接信息 nmcli connection show # 修改网卡eth0网络配置 nmcli con modify eth0(网卡名称) ipv4.method method ipv4.addresses 192.168.120.46/24 ipv4.gateway 192.168.120.253 ipv4.dns 200.200.200.1 connection.autoconnect yes # 使配置生效 nmcli connection up eth0 # 重启网络 systemctl restart network