中科方德系统(NFS)适配产品(容器类)感触以及遇到的问题

Posted kiroct

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了中科方德系统(NFS)适配产品(容器类)感触以及遇到的问题相关的知识,希望对你有一定的参考价值。

产品适配后感触:
1、我这里使用的是系统版本"4.0.220127"、最小化安装、同时适配了min、cloudinit,来适配
2、感觉属于redaht系列的命令,其中更类似于centos8种类的,因为在最小化安装的时候只有dnf命令而替代了centos7里面的yum命令。因此,我这里配的源文件就是以centos8的仓库来配置的,可以完美适配中科方德适配产品的时候的依赖性的问题。
以下是仓库配置:(x86的,arm自己改下配置架构)
```html/xml

CentOS-Base.repo

#

The mirror system uses the connecting IP address of the client and the

update status of each mirror to pick mirrors that are updated to and

geographically close to the client. You should use this for CentOS updates

unless you are manually picking other mirrors.

#

If the mirrorlist= does not work for you, as a fall back you can try the

remarked out baseurl= line instead.

#
#

[base]
name=CentOS-8 - Base - mirrors.aliyun.com
#failovermethod=priority
baseurl=https://mirrors.aliyun.com/centos/8/BaseOS/$basearch/os/
http://mirrors.aliyuncs.com/centos/8/BaseOS/$basearch/os/
http://mirrors.cloud.aliyuncs.com/centos/8/BaseOS/$basearch/os/
https://mirrors.aliyun.com/centos/8/centosplus/x86_64/os/
gpgcheck=1
gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official

#additional packages that may be useful
[extras]
name=CentOS-8 - Extras - mirrors.aliyun.com
#failovermethod=priority
baseurl=https://mirrors.aliyun.com/centos/8/extras/$basearch/os/
http://mirrors.aliyuncs.com/centos/8/extras/$basearch/os/
http://mirrors.cloud.aliyuncs.com/centos/8/extras/$basearch/os/
gpgcheck=1
gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-8 - Plus - mirrors.aliyun.com
#failovermethod=priority
baseurl=https://mirrors.aliyun.com/centos/8/centosplus/$basearch/os/
http://mirrors.aliyuncs.com/centos/8/centosplus/$basearch/os/
http://mirrors.cloud.aliyuncs.com/centos/8/centosplus/$basearch/os/
gpgcheck=1
enabled=0
gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official

[PowerTools]
name=CentOS-8 - PowerTools - mirrors.aliyun.com
#failovermethod=priority
baseurl=https://mirrors.aliyun.com/centos/8/PowerTools/$basearch/os/
http://mirrors.aliyuncs.com/centos/8/PowerTools/$basearch/os/
http://mirrors.cloud.aliyuncs.com/centos/8/PowerTools/$basearch/os/
gpgcheck=1
enabled=0
gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official

[AppStream]
name=CentOS-8 - AppStream - mirrors.aliyun.com
#failovermethod=priority
baseurl=https://mirrors.aliyun.com/centos/8/AppStream/$basearch/os/
http://mirrors.aliyuncs.com/centos/8/AppStream/$basearch/os/
http://mirrors.cloud.aliyuncs.com/centos/8/AppStream/$basearch/os/
gpgcheck=1
gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official

3、提供一个不错的k8s方面的国内适配源arm(x86请自己改下后缀)
```html/xml
name=Kubernetes
baseurl=https://mirrors.cloud.tencent.com/kubernetes/yum/repos/kubernetes-el7-aarch64/
enabled=1
gpgcheck=0
#repo_gpgcheck=1
##gpgkey=https://mirrors.cloud.tencent.com/kubernetes/yum/doc/yum-key.gpg https://mirrors.cloud.tencent.com/kubernetes/yum/doc/rpm-package-key.gpg

4、最小化安装的中科方得在sftp上会出现问题,具体表现为sftp使用异常、在使用winscp这类东西传输文件的时候,会显示sftp协议使用失败,因为此时使用的是scp协议,因而需要去/etc/ssh/sshd_config文件里面搜索“/sftp”。会发现那个目录下面并无关联的软连接,解决方案是删除一个/openssh/,重启sshd,即可恢复sftp服务。
(可以正常使用sftp服务的配置文件如图)

以上是关于中科方德系统(NFS)适配产品(容器类)感触以及遇到的问题的主要内容,如果未能解决你的问题,请参考以下文章

共话信创生态,袋鼠云数栈正式入驻中国信创服务社区

嵌入式设备搭建NFS环境(服务器/客户端源码下载编译文件系统适配内核适配)

基于TSINGSEE产品分布式部署NFS共享文件系统的实现过程

国产基础技术--》差太远

Java中啥是适配器模式及其作用是啥??

RT-Thread与龙芯中科完成产品兼容互认