我使用Apache和PHP5的CentOS来制作Web开发服务器。 文件(html,php,js等)位于networking文件共享(SMB)上:

所以,基本上,开发人员在networking驱动器上的Windows工作站上工作。 文件托pipe在文件服务器上,并与CentOS 6.4 Web服务器共享。
在CentOS服务器上安装共享的最佳方式是什么?
我问,因为我已经试过fstab,有时它出错了,我不得不手动重新安装服务器上的共享。
我也尝试使用autofs(在mnt.auto conf文件中),即使它更稳定也很痛苦。
在这种情况下,你会推荐什么?
非常感谢。
我发现的最可靠的方法是使用autofs(您可能需要先安装它)。
在/etc/auto.master中添加以下内容:
/win /etc/auto.win --timeout=60
然后为每个Windows共享创build/etc/auto.win,例如:
user -rw,intr,credentials=/root/creds,fstype=cifs,noperm userpc:/share_name
接下来创build凭证文件:
username=domain/user password=user_password
最后,
chkconfig autofs on service autofs start
您的份额将被映射为/ win的子目录