Job For Nfs Server.service Canceled.

如果出现Restarting nfs-kernel-server (via systemctl): nfs-kernel-server.serviceJob for nfs-server.service canceled. 但是启动 nfs 时 出错,提示: A dependency job for nfs-server.service failed. See 'journalctl -xe' for details 查看日志信息 tail -fn 100 /var/log/messages 显示如下:!

I tried to setup my pi as a NFS server.

htpc@MediaServer $ systemctl start nfs-server Failed to start nfs-server.service: The name org.freedesktop.PolicyKit1 was not provided by any.service files See system logs and 'systemctl status nfs-server.service' for details. Unit Description=NFS server and services DefaultDependencies=no Requires=network.target proc-fs-nfsd.mount Requires=nfs-mountd.service Wants=rpcbind.socket Wants=nfs-idmapd.service After=local-fs.target After=network.target proc-fs-nfsd.mount rpcbind.socket nfs-mountd.service After=nfs-idmapd.service rpc-statd.service Before=rpc-statd-notify.service # GSS services dependencies. This entry was posted on Wednesday, March 30th, 2016 at 11:31 pm and is filed under NIX Posts.You can follow any responses to this entry through the RSS 2.0 feed.


1. sudo apt-get install nfs-common nfs-kernel-server

Server For Nfs

Jul 12, 2018 NFS is a very streamlined approach to sharing files across Linux systems. On Ubuntu, it's simple to use and can work virtually transparently once configured. The only drawback to NFS is that it's a Linux-only sharing system. Hello CentOS guru`s! I have a problem with fresh install of NFS server on CentOS 7.2 Manual start of nfs-server.service is successful, but service cant start if server power off/power on.


Job for nfs-server.service canceled2. edit /etc/exports
add /home/pi 192.168.1.0/24(rw,sync)
3. sudo /etc/init.d/nfs-kernel-server restart
then I get
[email protected]:/home/pi# sudo /etc/init.d/nfs-kernel-server restartServer for nfs
[..] Restarting nfs-kernel-server (via systemctl): nfs-kernel-server.serviceJob for nfs-server.service failed because the control process exited with error code.

Job For Nfs-server.service Canceled


See 'systemctl status nfs-server.service' and 'journalctl -xe' for details.
failed!
[email protected]:/home/pi#
I'm new to this. please help. how to solve the issue. what I'm missing?
thanks
Xian

I tried to setup my pi as a NFS server.1. Sudo apt-get install nfs-common nfs-kernel-server2. Edit /etc/exportsadd /home/pi 192.168.1.0/24(rw,sync)3.

Sudo /etc/init.d/nfs-kernel-server restartthen I get:/home/pi# sudo /etc/init.d/nfs-kernel-server restart. Restarting nfs-kernel-server (via systemctl): nfs-kernel-server.serviceJob for nfs-server.service failed because the control process exited with error code.See 'systemctl status nfs-server.service' and 'journalctl -xe' for details.failed!:/home/pi#I'm new to this. How to solve the issue. What I'm missing?thanksXian.

:/home/pi# systemctl status nfs-server.service?