OS: Debian GNU/Linux 9.6 (stretch) x86_64
想用win10來存取linux上的檔案
但我的win10之前不知道動了什麼,不能開samba也不能用samba
所以只能用NFS了
win10的NFS Client不能用UTF-8,會亂碼
但聽說用NFSv4能用UTF-8,所以想讓linux跑NFSv4 server
參考了這篇文章https://blog.gtwang.org/linux/nfsv4/
但執行最後一步 sudo service idmapd restart
會顯示 Failed to restart idmapd.service: Unit idmapd.service not found.
參考了https://bit.ly/2zfmDsG
存在 /etc/systemd/system/multi-user.target.wants/nfs-server.service
也執行了
sudo apt-get purge nfs-common nfs-kernel-server
sudo apt-get install nfs-common nfs-kernel-server
但還是一樣
如果沒有執行最後一步sudo service idmapd restart的話
使用nfsstat -s
會顯示
Server rpc stats:
calls badcalls badfmt badauth badclnt
2304 56 56 0 0
Server nfs v3:
這應該算是沒有使用NFSv4吧?
那有什麼辦法可以成功啟用NFSv4 Server呢?謝謝