我正在尝试在 ubuntu 16.04 上运行 NFS 服务,但是当我运行命令时:
Sudo service nfsd status
我收到以下消息:
millionlights@millionlights-desktop:~$ sudo service nfsd status
[sudo] password for millionlights:
● nfsd.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
我运行以下命令来安装 nfs 服务器和客户端但无济于事。
sudo apt-get install nfs-kernel-server
请告诉我如何让 nfs 客户端运行?
答案1
systemd 服务的名称不是nfsd
(这是守护进程的名称过程):
$ systemctl list-unit-files nfs*
UNIT FILE STATE
nfs-blkmap.service static
nfs-config.service static
nfs-idmapd.service static
nfs-kernel-server.service enabled
nfs-mountd.service static
nfs-server.service enabled
nfs-utils.service static
nfs-blkmap.target disabled
nfs-client.target enabled
9 unit files listed.
因此显示服务器状态的命令是
systemctl status nfs-server
或者
systemctl status nfs-kernel-server