Windows 帐户之间的运行时间不同
我在某些计算机(而非全部)上运行 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论