You can deploy a server for file sharing on different operating systems by using different file sharing protocols. Read how to configure Windows file share by using SMB protocol.
Learn about the configuration process in the Windows Server 2019 GUI and command line: https://www.nakivo.com/blog/create-file-share-windows-server/