【问题标题】:How to setup TC Server Developer Edition (in STS) and accessing a UNC path如何设置 TC Server Developer Edition(在 STS 中)和访问 UNC 路径
【发布时间】:2014-05-23 16:25:55
【问题描述】:
我有一个在 TC Server Developer Edition 实例中的 Spring Tool Source IDE 中运行的 java 项目,我需要访问我们网络上的一个 UNC 路径共享。
如何配置 TC Server Developer Edition 以使用已被授予访问我们网络共享的“服务帐户”?
我读到对于 Apache Tomcat 你可以只配置 windows 服务,但是我拥有的 TC Server 的开发版本,它似乎没有安装服务。
【问题讨论】:
标签:
java
eclipse
spring-tool-suite
tcserver
【解决方案1】:
TC Server Developer Edition 可以作为服务轻松安装。
转到您的实例目录并键入
tcruntime-ctl.bat 安装。
即
#>cd C:\dev\runtimes\vfabric-tc-server-developer-2.7.0\my-instance\bin
#>tcruntime-ctl.bat install
Derived instance name: my-instance
Installing instance at C:\dev\runtimes\vfabric-tc-server-developer-2.7.0\my-instance
wrapper | VMware vFabric tc Runtime instance - tcruntime-C-dev-runtimes-vfabric-tc-server-developer-2.7.0-my-instance installed.
上面的输出将为您提供已安装服务的名称。
在 Windows 服务中找到它。切换到登录选项卡并设置该服务的帐户。
【解决方案2】:
根据我自己的研究,我所能发现的只是,如果用户有权访问 UNC 共享,则 dev ed.的 TC Server 也具有该访问权限。因此,无论 STS IDE 是在哪个用户下启动的,TC 服务器都将具有相同的访问权限。