大网数据广告活动
服务器运维问答

Need to create persistent share between Linux and Windows Server 2012 r2, options?

· 52CE 我爱测

So we have a need for this type of share, and I'm not sure how best to do this. Basically files will be created on a Centos 6.x box, and that directory (and the files that are created) need to be accessible from a Windows Server …

问题原文

原帖链接 · zoo_live_crew · CC BY-SA 3.0

So we have a need for this type of share, and I'm not sure how best to do this.

Basically files will be created on a Centos 6.x box, and that directory (and the files that are created) need to be accessible from a Windows Server 2012r2 box at all times. I know how to create an NFS share on the Linux box, and installed NFS client on the 2012r2 box and know how to mount that share, however I don't see any way to keep this persistent when I either log off the 2012r2 box, or when it needs to be rebooted.

Is there a "good" way to do this? I found a workaround, but started thinking this can't be a rare need (to have a persistent share between Linux/Windows) so is there a better way that doesn't involve having to purchase additional software?

已采纳解答

原帖链接 · Doug · CC BY-SA 3.0

You will want to install Samba on the CentOS 6 system, expose your mount point as a network share, and create a persistent drive letter on the Windows box with net use

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-12-21)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。