linux一直卡在nfsd_Linux nfsd的过程和含义是什么?

linux一直卡在nfsd

linux一直卡在nfsd

NFS is Unix and Linux type network based file system. This file system is served over network. In order to serve file system with files and directory nfsd daemon is used. It is actually a kernel module with a service. NFS is the short form of Network Files System.

NFS是基于Unix和Linux类型网络的文件系统。 该文件系统通过网络提供。 为了使用文件和目录为文件系统提供服务,使用了nfsd守护程序。 它实际上是带有服务的内核模块。 NFS是网络文件系统的缩写。

安装 (Installation)

We can install NFS client tools and service with the following commands.

我们可以使用以下命令安装NFS客户端工具和服务。

Ubuntu,Debian,Mint,Kali: (Ubuntu, Debian, Mint, Kali:)

Following command will install client tools.

以下命令将安装客户端工具。

$ sudo apt install nfs-common

and with the following nfs-kernel-server package we will install server daemon.

并使用以下nfs-kernel-server软件包安装服务器守护程序。

$ sudo apt install nfs-kernel-server
Install NFS Client and Server
Install NFS Client and Server
安装NFS客户端和服务器

CentOS,Fedora,RHEL: (CentOS, Fedora, RHEL:)

$ sudo yum install nfs-utils nfs-utils-lib

版本NFSv2,NFSv3,NFSv4 (Versions NFSv2, NFSv3,NFSv4)

NFS has different versions to use. Most recent version is v4. There are some major differences about versions. Most of the systems runs NFSv3 and NFSv4

NFS有不同的版本可以使用。 最新版本是v4。 版本之间存在一些主要差异。 大多数系统运行NFSv3NFSv4

配置文件 (Configuration File)

NFS service has a default configuration which is stored as /usr/share/nfs-kernel-server/conffiles/nfs-kernel-server.default . We can view an change it like below.

NFS服务具有默认配置,该配置存储为/usr/share/nfs-kernel-server/conffiles/nfs-kernel-server.default 。 我们可以像下面一样查看更改。

$ sudo vim /usr/share/nfs-kernel-server/conffiles/nfs-kernel-server.default
NFS Configuration File
NFS Configuration File
NFS配置文件

There is following configuration options to change.

有以下配置选项可以更改。

  • RPCNFSDCOUNT will set number of NFSD servers which will start.

    RPCNFSDCOUNT将设置将启动的NFSD服务器的数量。

  • `RPCNFSDPRIORITY` will set the process priority of the NFSD. Higher numbers will make our NFSD server more performative.

    `RPCNFSDPRIORITY`将设置NFSD的进程优先级。 更高的数字将使我们的NFSD服务器更具性能。
  • `RPCMOUNTDOPTS` is used to set rpc mount options.

    `RPCMOUNTDOPTS`用于设置rpc挂载选项。

  • `NEED_SVCGSSD` is used for Kerberos authentication for exports. The default value is no which will disable Kerberos authentication.

    NEED_SVCGSSD用于导出的Kerberos身份验证。 默认值为no ,它将禁用Kerberos身份验证。

  • During start of the NFSD we may want to provide some options the the rpc.svcgssd . We can set it with `RPCSVCGSSDOPTS` .

    在NFSD启动期间,我们可能需要提供rpc.svcgssd选项。 我们可以使用`RPCSVCGSSDOPTS`进行设置。

共享文件和目录 (Share Files and Directories)

Files sharing is the main purpose of the NFS service or NFSD . The file share is stored in the /etc/export file like below.

文件共享是NFS服务或NFSD的主要目的。 文件共享存储在/etc/export文件中,如下所示。

$ cat /etc/exports
Share Files and Directories
Share Files and Directories
共享文件和目录

As we can see there are some example configurations which are not active. In this example we will share /mtn directory to the all of the remote systems.

如我们所见,存在一些未激活的示例配置。 在此示例中,我们将/mtn目录共享到所有远程系统。

/mnt *

In this example we will share /mnt to the only to the systems reside in 192.168.1.0/24

在此示例中,我们将/mnt共享给192.168.1.0/24的唯一系统

/mnt   192.168.1.0/24

We can also share the given path with a single remote system which is 192.168.1.10 in this example.

在此示例中,我们还可以与单个远程系统192.168.1.10共享给定路径。

/mnt    192.168.1.10

NFS和NFSD之间的区别 (Difference Between NFS and NFSD)

NFSD is a user level process but do not have any function to process NFS requests. NFSD redirects requests tot eh kernel transport endpoint and invokes a in-kernel process to process request and respond to the client. NFSD is the server side.

NFSD是用户级别的过程,但是没有任何功能来处理NFS请求。 NFSD将请求重定向到内核传输端点,并调用内核内进程来处理请求并响应客户端。 NFSD是服务器端。

LEARN MORE  How To Map Network Drive In Windows?
了解更多信息如何在Windows中映射网络驱动器?

NFS is the client side and each process accessing an NFS file system will make its own RPC request to the remote NFSD or NFS server.

NFS是客户端,访问NFS文件系统的每个进程都会向远程NFSD或NFS服务器发出自己的RPC请求。

翻译自: https://www.poftut.com/what-is-linux-nfsd-process-and-meaning/

linux一直卡在nfsd

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值