如何定义 windows 服务必须 运行 的系统帐户

How to define a system account under which a windows service must run

我有一个 windows 服务不想连接到我的 SQL 数据库。配置的 connectionstring App.config 属性 指定 Integrated Security = true,但服务仍然响应:Unable to establish a connection to the datasource。据我所知,该服务需要与用于连接的用户帐户一起安装吗?

如果是,请问如何、何时、何地!

因此,为了实现这一点,打开 Services Manager,右键单击您要验证的服务,select Log On 选项卡并指定所需的帐户。