Windows 帐户之间的运行时间不同

发布于 2025-01-05 03:20:26 字数 425 浏览 4 评论 0原文

我在某些计算机(而非全部)上运行 Windows 服务时遇到问题。

它是用VS2008编写的,需要VC Runtime。我先安装了VC Runtime,然后通过管理员安装了该服务。

服务登录用户为liwb,属于管理员组。然后我发现该服务在某些计算机上无法运行。他们都有用户liwb并且密码是对的。

然后我将服务的登录用户更改为 SYSTEM,但它仍然存在。

最后,我将服务的登录用户更改为管理员。它起作用了。

那么,有什么不同呢?

该服务在main函数中有日志,但是失败时日志文件中没有任何内容。 所以,我认为当我使用 liwb 或 SYSTEM 运行服务时,它找不到 VC Runtime。 我认为 liwb、SYSTEM 和 Administrator 有不同的运行时。

但我不知道为什么?有关于这个问题的一些资源吗?

I have a problem on running a windows service on some computers, not all.

It's written by VS2008, and needs VC Runtime. I installed the VC Runtime first, then installed the service by Administrator.

The service logon user is liwb, in Administrator Group. Then I found the service couldn't run on some computers. They all have user liwb and the password is right.

Then I changed the service's logon user to SYSTEM, but it remains.

Finally, I changed the service's logon user to Administrator. It worked.

So, what's the different?

The service has a log in the main function, but there is nothing in the logfile when it failed.
So, I think when I use liwb or SYSTEM to run the service, it couldn't find the VC Runtime.
And I think liwb, SYSTEM and Administrator have different runtime.

But I didn't know why? Is there some resources on this issue?

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文