[心得] NFS/SAMBA可以直接讓程式存取嗎?消失

看板MIS作者時間6年前 (2017/11/20 16:38), 編輯推噓2(206)
留言8則, 4人參與, 最新討論串1/1
想請教一下大家。 是這樣的,我用centos安裝了NSF或是SAMBA, 然後讓windows server essential 2016可以網路硬碟/區網的方式連上, 我也可以把檔案從windows複製過去,或是刪除centos上的檔案,都沒問題。 我現在是想安裝程式在windows上,架設mail server, 然後把檔案部分指向centos的NSF或SAMBA, 但是我遇到問題, 不管怎麼存檔,這程式都顯示無法辨識該主機位置。 我現在的問題是, 是否我設定的方式錯了呢? 因為我目前應該是用"檔案系統"的概念去連, 而如果我要讓我的windows程式可以存取centos上的NFS/SAMBA, 是不是得用"磁碟(block device)"的方式去連呢?例如 iscsi ? 還是"檔案系統"的方式就可以了,只是我得改什麼權限? 因為我從event log去看,錯誤大概都是這樣, 但是我還是沒有很了解該怎麼處理, 不曉得是否有版大可以給我些建議呢? 謝謝 System.IO.IOException: Insufficient system resources exist to complete the requested service. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost) at System.IO.StreamReader..ctor(String path) at MailStore.Failover.FailoverManager.#skb() at MailStore.Failover.FailoverManager.StartPingThread() -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 118.169.227.167 ※ 文章網址: https://www.ptt.cc/bbs/MIS/M.1511167106.A.548.html

11/20 16:46, , 1F
你有把 samba 掛成本機磁碟 ?
11/20 16:46, 1F

11/20 17:17, , 2F
你用unc路徑嗎?
11/20 17:17, 2F

11/20 21:54, , 3F
f大,你指的"本機磁碟"是指"Devices and drives"底下嗎?
11/20 21:54, 3F

11/20 21:55, , 4F
x大,路徑有顯示 \\主機名 過,也有過像 Y:\
11/20 21:55, 4F

11/20 22:21, , 5F
ms exchange?
11/20 22:21, 5F

11/22 22:34, , 6F
Exchange只有在Virtualization下執行時支援SMB3.0
11/22 22:34, 6F

11/22 22:34, , 8F
ee832792(v=exchg.160).aspx
11/22 22:34, 8F
文章代碼(AID): #1Q4fI2L8 (MIS)