我在尝试在 GoDaddy 上的 2 个 VPS 之间设置 nfs 共享文件夹时遇到了很大的麻烦,尝试按照大量的分步指南来执行此操作,但我无法启动 NFS 服务,尝试启动时出现此错误:
FATAL: Module nfsd not found.
FATAL: Error running install command for nfsd
Starting NFS services: [ OK ]
Starting NFS quotas: [ OK ]
Starting NFS mountd: [ OK ]
Stopping RPC idmapd: [ OK ]
Starting RPC idmapd: [ OK ]
Starting NFS daemon: rpc.nfsd: Unable to access /proc/fs/nfsd errno 2 (No such file or directory).
Please try, as root, 'mount -t nfsd nfsd /proc/fs/nfsd' and then restart rpc.nfsd to correct the problem
[FAILED]
另外,如果我尝试安装该行:
mount -t nfsd nfsd /proc/fs/nfsd
我得到:
mount: unknown filesystem type 'nfsd'
请帮忙
答案1
尝试将一个磁盘作为 nfs-kernel-server,并从第二个服务器连接到第一个服务器,尝试:在服务器上安装apt-get install nfs-kernel-server
后编辑配置文件/etc/exports
在客户端安装apt-get install nfs-common
并连接到文件夹
mount 12.34.56.78:/external/folder /home/second