我有一个 nfs 服务器,但是 nfs 服务器根本没有运行。它显示
Active: active (exited) since Fri 2020-03-06 12:36:08 AEST; 1h 9min ago
$sudo systemctl status nfs-server
● nfs-server.service - NFS server and services
Loaded: loaded (/lib/systemd/system/nfs-server.service; enabled; vendor preset: enabled)
Active: active (exited) since Fri 2020-03-06 12:36:08 AEST; 1h 9min ago
Process: 2908 ExecStopPost=/usr/sbin/exportfs -f (code=exited, status=0/SUCCESS)
Process: 2907 ExecStopPost=/usr/sbin/exportfs -au (code=exited, status=0/SUCCESS)
Process: 2906 ExecStop=/usr/sbin/rpc.nfsd 0 (code=exited, status=0/SUCCESS)
Process: 2917 ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS (code=exited, status=0/SUCCESS)
Process: 2916 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS)
Main PID: 2917 (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 4915)
CGroup: /system.slice/nfs-server.service
Mar 06 12:36:07 xxx-VirtualBox systemd[1]: Starting NFS server and services...
Mar 06 12:36:08 xxx-VirtualBox systemd[1]: Started NFS server and services.
我尝试使用以下命令导出 nfs。我的文件夹的权限是 777。它有一组
sudo chown nobody:nogroup rootfs_microzed
#exportfs -ra
#exportfs
sudo exportfs
/home/xxx/rootfs_microzed
<world>
基本上,我尝试使用 nfs 从嵌入式设备 zynq 挂载根文件系统。我能够使用我的 debian 虚拟机挂载根文件系统。但是,它无法使用 ubuntu 机器挂载。我使用了相同的 /etc/export 设置。
/home/xxx/rootfs_microzed *(rw,nohide,insecure,no_root_squash,no_subtree_check,async)
我也尝试过重新启动 nfs 服务器,但是没有帮助。