无法启动 NFS 在 fedora25 中,由于单元 proc-fs-nfsd.mount 被屏蔽,因此出现错误



我正在尝试在 Fedora25 中启动 NFS

[root@localhost tftpboot]# systemctl start nfs-server.service

无法启动 nfs-server.service:单元 proc-fs-nfsd.mount 被屏蔽。

它给出了上述错误,并且状态也显示为非活动

[root@localhost tftpboot]# systemctl status nfs-server.service
 nfs-server.service - NFS server and services
   Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; enabled; vendor preset: disabled)
  Drop-In: /run/systemd/generator/nfs-server.service.d
           └─order-with-mounts.conf
   Active: inactive (dead) since Thu 2017-03-30 19:02:10 IST; 2min 45s ago
  Process: 4886 ExecStopPost=/usr/sbin/exportfs -f (code=exited, status=0/SUCCESS)
  Process: 4883 ExecStopPost=/usr/sbin/exportfs -au (code=exited, status=0/SUCCESS)
  Process: 4880 ExecStop=/usr/sbin/rpc.nfsd 0 (code=exited, status=0/SUCCESS)
 Main PID: 981 (code=exited, status=0/SUCCESS)

尝试使用以下命令来取消屏蔽"sudo systemctl unmask proc-fs-nfsd.mount",然后"sudo service nfs restart"。 它奏效了

最新更新