Windows服务连接到服务器以下载一些文件

发布于 2024-09-09 06:30:56 字数 418 浏览 2 评论 0原文

同一个区域有三个发球。 172..*.**

假设他们的名字是A、B和C

服务器A有一个windows服务,它从C的服务器下载文件,在文件夹中的图像。它曾经给出有关拒绝访问的错误,然后我们将完全控制权分配给服务器 C 上图像文件夹的每个人。然后就可以了。

现在,相同的 Windows 服务在服务器 B 上运行,并且从服务器 C 的图像文件夹中获取相同的内容。但是存在有关拒绝访问的错误。

我应该怎样做才能使服务器B能够连接服务器C并下载文件?请逐步...

***错误:异常:访问路径 '\172...\images' 被拒绝。

\172...\ 又名服务器 C

There are three serves on the same zone. 172..*.**

Suppose that their names are A,B and C

The server A has a windows service, and it downloads the files from the server of C, in the folder of images. It used to give errors about access-denied then we assign full control to everyone on the folder of images on the server C. Then it was ok.

Now the same windows service runs on the server B, and ,t gets the same things from images folder of the server C. But there is an error about access-denied.

What should I do for the required steps to make the server B be able to connect the server C and download the files? Please step-by-step...

***The error: Exception:Access to the path '\172...\images' is denied.

\172...\ aka the server C

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

没︽人懂的悲伤 2024-09-16 06:30:56

我会在 Active Directory 中创建服务帐户,以允许该服务在用户帐户而不是网络服务或本地计算机下运行。

然后,您需要更改本地安全策略以允许该用户作为服务运行

控制面板\所有控制面板项目\管理工具\本地安全策略\本地策略\用户权限分配\作为服务登录\

添加用户在服务器 B 和 C 上拥有适当权限的共享安全帐户

希望这对

Iain有帮助

I would create service accounts in you Active Directoy to allow there service run under a user account rather than network service or local computer.

You will then need to make a change to the Local Security policy to allow that user run as service

Control Panel\All Control Panel Items\Administrative Tools\Local Security Policy\Local Policies\User Rights Assignment\Log on as Service\

Add the user account to the share security with the apropriate rights on servers B and C

Hope this helps

Iain

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文