鲲鹏920CPU+统信UOS20,ARM架构下的Nacos源码编译与Docker镜像制作

客户环境

这里是现场实际的环境
这个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
  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
根据提供的引用内容,可以得知本套方案采用了NFS+Rsync+Keepalived的高可用架构方案,其中利用NFS服务提供一个共享目录,供客户端挂载到自己的文件系统中。而Rsync则是一种常用的文件同步工具,可以将本地或远程的文件同步到另一台服务器上。统信UOS是一款国产操作系统,支持Rsync工具。 因此,可以通过在统信UOS上安装Rsync工具,实现文件的同步和备份。具体步骤如下: 1. 安装Rsync工具 可以通过以下命令在统信UOS上安装Rsync工具: ```shell sudo apt-get install rsync ``` 2. 配置Rsync服务 可以通过编辑Rsync配置文件/etc/rsyncd.conf来配置Rsync服务。例如,可以添加以下内容: ```shell uid = root gid = root use chroot = no max connections = 10 pid file = /var/run/rsyncd.pid exclude = lost+found/ transfer logging = yes log format = %t: %a: %m: %f: %b log file = /var/log/rsyncd.log [backup] path = /backup comment = Backup Folder read only = no list = yes ``` 其中,[backup]表示共享的目录名,path表示共享的目录路径,comment表示注释,read only表示是否只读,list表示是否允许列出目录内容。 3. 启动Rsync服务 可以通过以下命令启动Rsync服务: ```shell sudo rsync --daemon --config=/etc/rsyncd.conf ``` 4. 进行文件同步 可以通过以下命令进行文件同步: ```shell rsync -avz /local/path user@remote:/remote/path ``` 其中,/local/path表示本地路径,user@remote表示远程服务器的用户名和IP地址,/remote/path表示远程路径。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值