2020年1月2日 星期四

Debian 10 nfs ganesha 安裝摘要

安裝
apt install -y nfs-ganesha  nfs-ganesha-vfs

編輯設定檔 /etc/ganesha/ganesha.conf
EXPORT
{
        # Export Id (mandatory, each EXPORT must have a unique Export_Id)
        Export_Id = 1;

        # Exported path (mandatory)

        Path = /nfs;

        # Pseudo Path (required for NFS v4)

        Pseudo = /nfs;

        # Required for access (default is None)
        # Could use CLIENT blocks instead
        Access_Type = none;
        Squash = No_root_squash;

       CLIENT {
                Clients = 192.168.1.0/24;
                Access_Type = RW;
        }


        # Exporting FSAL
        FSAL {
                Name = VFS;
        }
}



啟動服務
systemctl restart nfs-ganesha

沒有留言: