客户环境
这里是现场实际的环境
这个UOS20是ubuntu改的
# CPU
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 1
Core(s) per socket: 2
Socket(s): 2
NUMA node(s): 1
Vendor ID: 0x48
Model: 0
Model name: HUAWEI Kunpeng 920 5251K
Stepping: 0x1
BogoMIPS: 200.00
L1d cache: 256 KiB
L1i cache: 256 KiB
L2 cache: 2 MiB
L3 cache: 64 MiB
NUMA node0 CPU(s): 0-3
Flags: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt lpae evtstrm
# 内存
Linux version 4.19.0-arm64-server (uosserver@uosserver-PC) (gcc version 8.3.0 (Uos 8.3.0.3-3+rebuild)) #4009 SMP Thu Jul 8 18:29:14 CST 2021
# OS
No LSB modules are available.
Distributor ID: Uos
Description: UnionTech OS Server 20
Release: 20
Codename: fou
云主机环境
因为本地没有客户那种环境,所以只能找到华为云那边的仅有的一种类似环境
这个UOS20是Centos8改的
操作过程
这里只写关键的操作过程
# 系统信息
[root@uos20 ~]# lscpu
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 1
On-line CPU(s) list: 0
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 1
NUMA node(s): 1
Vendor ID: HiSilicon
Model: 0
Model name: Kunpeng-920
Stepping: 0x1
CPU max MHz: 2400.0000
CPU min MHz: 2400.0000
BogoMIPS: 200.00
L1d cache: 64 KiB
L1i cache: 64 KiB
L2 cache: 512 KiB
L3 cache: 32 MiB
NUMA node0 CPU(s): 0
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Spec store bypass: Not affected
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Not affected
Vulnerability Tsx async abort: Not affected
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma dcpop asimddp asimdfhm
[root@uos20 ~]#
[root@uos20 ~]# uname -r
4.19.90-2005.2.0.0039.uel20.aarch64
[root@uos20 ~]#
[root@uos20 ~]# uname -a
Linux uos20 4.19.90-2005.2.0.0039.uel20.aarch64 #1 SMP Wed Jun 24 02:55:59 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux
[root@uos20 ~]#
[root@uos20 ~]#
[root@uos20 ~]# cat /etc/issue
UOS Server Euler 20
# 编译环境搭建
# 添加yum源
# docker/epel
$ cat /etc/yum.repos.d/docker-ce.repo
[docker-ce-stable]
name=Docker CE Stable - $basearch
baseurl=https://mirrors.aliyun.com/docker-ce/linux/centos/7/$basearch/stable
enabled=1
gpgcheck=1
gpgkey=https://mirrors.aliyun.com/docker-ce/linux/centos/gpg
[docker-ce-stable-debuginfo]
name=Docker CE Stable - Debuginfo $basearch
baseurl=https://mirrors.aliyun.com/docker-ce/linux/centos/7/debug-$basearch/stable
enabled=0
gpgcheck=1
gpgkey=https://mirrors.aliyun.com/docker-ce/linux/centos/gpg
[docker-ce-stable-source